summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Marc-Andre Lemburg: The large unicode database table is broken inGuido van Rossum2000-03-313-10/+118
| | | | | pages of 4k entries each. This should fix compiler problems on some platforms.
* Add '#include <netinet/tcp.h>'Andrew M. Kuchling2000-03-311-0/+1
| | | | | | "man tcp" on Solaris says that TCP_NODELAY is defined in netinet/tcp.h, and the Open Groups Unix98 spec agrees (http://www.opengroup.org/onlinepubs/009619199/ninettcp.htm).
* This module's name should be linuxaudio*dev*.cGuido van Rossum2000-03-312-2/+1
|
* Added some clarifications to pyexpat.Guido van Rossum2000-03-311-0/+13
|
* Make it compile on Windows.Guido van Rossum2000-03-311-2/+4
|
* Added Python interface to Expat XML parser.Andrew M. Kuchling2000-03-312-0/+872
| | | | | | | | The Setup.in entry is sort of a lie; it links with -lexpat, but Expat's Makefile doesn't actually build a libexpat.a. I'll send Expat's author a patch to do that; if he doesn't accept it, this rule will have to list Expat's object files (ick!), or have a comment explaining how to build a .a file.
* Removed three unused variables from the Windows code.Guido van Rossum2000-03-311-3/+0
|
* Added the _sre module. It is always on.Guido van Rossum2000-03-311-0/+1
|
* Adding Fredrik Lundh's _sre.c module and its header files.Guido van Rossum2000-03-313-0/+1518
| | | | NOTE: THIS IS VERY ROUGH ALPHA CODE!
* Add back an obscure "feature" to the Obj version of Tkapp_Call(): aGuido van Rossum2000-03-311-0/+4
| | | | | | None in an argument list *terminates* the argument list: further arguments are *ignored*. This isn't kosher, but too much code relies on it, implicitly. For example, IDLE was pretty broken.
* Sigh. On Windows, (mode_t)i fails. Assume that there's a prototypeGuido van Rossum2000-03-311-1/+1
| | | | in scope on systems where mode_t isn't the same size as int...
* Hacked for Win32 by Mark Hammond.Guido van Rossum2000-03-311-542/+569
| | | | | | | | | | | | | | | | | Reformatted for 8-space tabs and fitted into 80-char lines by GvR. Mark writes: * the Win32 version now accepts the same args as the Unix version. The win32 specific "tag" param is now optional. The end result is that the exact same test suite runs on Windows (definately a worthy goal!). * I changed the error object. All occurences of the error, except for 1, corresponds to an underlying OS error. This one was changed to a ValueError (a better error for that condition), and the module error object is now simply EnvironmentError. All win32 error routines now call the new Windows specific error handler.
* Don't use the object call interface in Tk 8.0 -- the EvalObj* APIGuido van Rossum2000-03-311-41/+164
| | | | | changed from 8.0 to 8.1 and I see no big reason to use objects in 8.0. At least now it works again with all versions from 8.0 - 8.3.
* Oops, the previous patch contained a bug in chmod. Fixed now.Guido van Rossum2000-03-311-2/+2
|
* Two robustness patches:Guido van Rossum2000-03-311-5/+12
| | | | | | | | | (1) In opendir(), don't call the lock-release macros; we're manipulating list objects and that shouldn't be done in unlocked state. (2) Don't use posix_strint() for chmod() -- the mode_t arg might be a 64 bit int (reported by Nick Maclaren).
* Add linuxaudio module.Guido van Rossum2000-03-301-0/+5
|
* Audio module for Linux, contributed by Peter Bosch.Guido van Rossum2000-03-301-0/+467
| | | | Careful, this has had zero testing (except by Peter)!
* Added mmap module -- map a view of a file into memory on Win32 and Unix.Andrew M. Kuchling2000-03-302-1/+849
| | | | (Needs testing on Win32.)
* The Tcl_Obj patch discussed on the patches list.Guido van Rossum2000-03-291-82/+77
| | | | | | | This was originally submitted by Martin von Loewis as part of his Unicode patch; all I did was add special cases for Python int and float objects and rearrange the object type tests somewhat to speed up the common cases (string, int, float, tuple, unicode, object).
* Marc-Andre Lemburg:Guido van Rossum2000-03-281-0/+46
| | | | | | | | | | | | | | | The attached patch set includes a workaround to get Python with Unicode compile on BSDI 4.x (courtesy Thomas Wouters; the cause is a bug in the BSDI wchar.h header file) and Python interfaces for the MBCS codec donated by Mark Hammond. Also included are some minor corrections w/r to the docs of the new "es" and "es#" parser markers (use PyMem_Free() instead of free(); thanks to Mark Hammond for finding these). The unicodedata tests are now in a separate file (test_unicodedata.py) to avoid problems if the module cannot be found.
* Patch by Neil Schemenauer to remove support for Tcl/Tk versions beforeGuido van Rossum2000-03-281-111/+21
| | | | | 8.0. There really is no excuse, and for who really still wants those, they can go back to Python 1.5.2.
* Add a call to Tcl_FindExecutable(). This was inspired by a patch byGuido van Rossum2000-03-271-0/+6
| | | | | Martin von Loewis (whose more elaborate patch to use objects is still under review).
* Fix all routines to use PyArg_ParseTuple(), and add ":name" to theGuido van Rossum2000-03-241-58/+71
| | | | | | | | argument format strings. THIS WILL PROBABLY BREAK LOTS OF CODE!!! Also fixed a bogus string in an error message in getsockaddrlen().
* Fix probable bug; if errno == EINTR, floatsleep() doesn't break out ofAndrew M. Kuchling2000-03-241-1/+1
| | | | | | | a Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS block, but it calls Py_BLOCK_THREADS anyway. The change moves Py_BLOCK_THREADS to inside the if, so it's only executed when the function actually returns unexpectedly.
* On 17-Mar-2000, Marc-Andre Lemburg said:Barry Warsaw2000-03-201-1/+1
| | | | | | | | | | | | | Attached you find an update of the Unicode implementation. The patch is against the current CVS version. I would appreciate if someone with CVS checkin permissions could check the changes in. The patch contains all bugs and patches sent this week and also fixes a leak in the codecs code and a bug in the free list code for Unicode objects (which only shows up when compiling Python with Py_DEBUG; thanks to MarkH for spotting this one).
* Fix bogus error reporting on strptime: let PyArg_ParseTuple set exception.Jeremy Hylton2000-03-141-5/+4
| | | | Also, wrap long line.
* Marc-Andre Lemburg: add new Unicode-related files.Guido van Rossum2000-03-101-0/+3
|
* Marc-Andre Lemburg: Add _codecs and unicodedata modules.Guido van Rossum2000-03-101-0/+4
|
* Marc-Andre Lemburg: support pickling Unicode objects, both in textGuido van Rossum2000-03-101-0/+149
| | | | mode ('V') and in binary mode ('X').
* Module unicodedata -- Provides access to the Unicode 3.0 data base.Guido van Rossum2000-03-101-0/+269
| | | | Written by Marc-Andre Lemburg.
* Internal module _codecs -- Provides access to the codec registry andGuido van Rossum2000-03-101-0/+529
| | | | the builtin codecs. Written by Marc-Andre Lemburg.
* Marc-Andre-Lemburg: The Unicode Database.Guido van Rossum2000-03-102-0/+65663
|
* Fixed inet_ntoa() docstring.Fred Drake2000-03-071-1/+1
|
* Second attempt to fix the ctermid_r/tmpnam_r warnings: define USE_CTERMID_RGreg Ward2000-03-011-3/+13
| | | | | and USE_TMPNAM_R at the top of the file and refer to them later; this catches a second reference to 'tmpnam_r' that I didn't spot first time around.
* Fix compiler warning: only use "_r" form of 'ctermid()' and 'tmpnam()' whenGreg Ward2000-03-011-2/+2
| | | | building a threaded Python.
* Patch by Fred Gansevles (the module's original author).Guido van Rossum2000-02-292-28/+58
| | | | | | | | | | | This patch fixes 3 small problems. 1) If a map is used which is generated with 'makedbm -a', the trailing '\0' is now handled correctely. 2) The nis.maps() function skipped the first map in the output list. 3) The library '-lnsl' is added in Setup.in (needed on Linux glibc2 and Solaris systems. Maybe on other systems too?) [I note that this still doesn't work when you are using NIS+ --GvR]
* Massive patch by Skip Montanaro to add ":name" to as manyGuido van Rossum2000-02-2931-231/+231
| | | | PyArg_ParseTuple() format string arguments as possible.
* Better fix for mpzmodule problem reported by Peter Funk: just useAndrew M. Kuchling2000-02-251-6/+2
| | | | mp_bits_per_limb with GMP 2.0
* Delete references to _SC_AIO_LIST_MAX; it appears that that symbol wasGuido van Rossum2000-02-251-3/+0
| | | | | just a typo in some Linux header; the real symbol is _SC_AIO_LISTIO_MAX.
* Peter Funk:Guido van Rossum2000-02-241-0/+5
| | | | | | | This patch allows building the Python 'mpzmodule' under SuSE Linux without having to install the source package of the GMP-libary. The gmp-mparam.h seems to be an internal header file. The patch shouldn't hurt any other platforms.
* What used to be tp_xxx4 is now tp_flags; set it to Py_TPFLAGS_DEFAULT.Fred Drake2000-02-211-2/+1
|
* Patch from Vladimir Marangozov <marangoz@python.inrialpes.fr>Andrew M. Kuchling2000-02-181-6/+6
| | | | | | | The same problem (mixed mallocs) exists for the pcre stack. The buffers md->... are allocated via PyMem_RESIZE in grow_stack(), while in free_stack() they are released with free() instead of PyMem_DEL().
* Patch from Vladimir Marangozov <marangoz@python.inrialpes.fr>:Andrew M. Kuchling2000-02-181-4/+2
| | | | | | The buffers self->regex and self->regex_extra are allocated in pcre_compile() and pcre_study() via pcre_malloc, but are released via free() instead of pcre_free.
* Patch by Jim Ahlstrom to add crc32, a useful checksum functionGuido van Rossum2000-02-161-0/+141
| | | | | | | | | | | (e.g. used for ZIP files). The patch includes code that says: + Copyright (C) 1986 Gary S. Brown. You may use this program, or + code or tables extracted from it, as desired without restriction. My interpretation (and Jim's) is that Gary S Brown has no claims under copyright, patent or other rights or interests. Lawyers might disagree.
* Protect against core dumps in gdbm: don't allow access by key once theFred Drake2000-02-071-2/+8
| | | | | | database is closed. Raise gdbm.error instead. Bug report #198 submitted by Barry Haddow <bhaddow@orbism.com>.
* Patch from Paul Sokolovsky <Paul.Sokolovsky@technologist.com>:Fred Drake2000-02-043-3/+9
| | | | | Attached is patch (against 1.5.2 release) to allow some modules to be buildable as pyd's (usual &PyType_Type stuff).
* Added docstring to crypt.crypt() based on the documentation.Fred Drake2000-02-011-1/+10
|
* The initialization of posix_putenv_garbage should only be done when itGuido van Rossum2000-01-311-0/+2
| | | | is defined...
* The rest of the changes by Trent Mick and Dale Nagata for warning-freeGuido van Rossum2000-01-201-1/+1
| | | | compilation on NT Alpha. Mostly added casts etc.
* According to Ron Bickers, and with apparent approval of ChrisGuido van Rossum2000-01-141-1/+1
| | | | | | Herborth, the code in list2set() that sets max unconditionally to 0 should not be used on BeOS. So be it. Anybody using BeOS, please test!