summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Continue removing _PyOS_double_to_string, as mentioned in issue 7117.Eric Smith2009-10-261-8/+22
|
* Fix compilation error in debug mode.Antoine Pitrou2009-10-241-3/+0
|
* Manual py3k backport: [svn r74316] Issue #5449: Fix io.BytesIO to not accept ↵Antoine Pitrou2009-10-241-1/+3
| | | | arbitrary keywords
* Manual py3k backport: [svn r74158] Issue #6218: Make io.BytesIO and ↵Antoine Pitrou2009-10-242-9/+260
| | | | io.StringIO picklable.
* Manual py3k backport: [svn r74155] Issue #6242: Fix deallocator of ↵Antoine Pitrou2009-10-242-6/+10
| | | | io.StringIO and io.BytesIO
* Issue #1722344: threading._shutdown() is now called in Py_Finalize(), whichAntoine Pitrou2009-10-201-29/+0
| | | | | fixes the problem of some exceptions being thrown at shutdown when the interpreter is killed. Patch by Adam Olsen.
* Issue #5833: Fix extra space character in readline completion with theAntoine Pitrou2009-10-191-3/+4
| | | | GNU readline library version 6.0.
* Issue #7133: SSL objects now support the new buffer API.Antoine Pitrou2009-10-191-11/+16
| | | | This fixes the test_ssl failure.
* Fix refleaks in _ctypes PyCSimpleType_New, which fixes the refleak seen in ↵Georg Brandl2009-10-171-3/+3
| | | | test___all__.
* Make cPickle.Unpickler.noload() handle dict subclasses. noload() isNeil Schemenauer2009-10-141-4/+31
| | | | | an obscure, undocumentated feature so no test was added. Closes issue #1101399.
* Issue #7078: _struct.__doc__ was being ignored. Import it into struct.Mark Dickinson2009-10-081-8/+10
| | | | | Also add description of '?' struct format character. Thanks Gabriel Genellina for the patch.
* #1571184: makeunicodedata.py now generates the functions _PyUnicode_ToNumeric,Amaury Forgeot d'Arc2009-10-062-131/+245
| | | | | | _PyUnicode_IsLinebreak and _PyUnicode_IsWhitespace. It now also parses the Unihan.txt for numeric values.
* Fix compilation warning on Windows, where size_t is 32bit but file offsets ↵Amaury Forgeot d'Arc2009-10-051-6/+7
| | | | are 64bit.
* #6990: clear threading.local's key only after its thread state is removed:Philip Jenvey2009-09-291-1/+1
| | | | | fixes local subclasses leaving old state around after a ref cycle GC which could be recycled by new locals
* Issue #3366: Add gamma function to math module.Mark Dickinson2009-09-281-35/+325
| | | | (lgamma, erf and erfc to follow).
* Eliminate unnecessary get_wrapped_(u)long defines in struct module.Mark Dickinson2009-09-271-9/+6
|
* #6243: fix segfault when keyname() returns a NULL pointer.Andrew M. Kuchling2009-09-251-4/+7
| | | | Bug noted by Trundle, patched by Trundle and Jerry Chen.
* http://bugs.python.org/issue6971Kristján Valur Jónsson2009-09-251-15/+39
| | | | Adding the SIO_KEEPALIVE_VALS command to socket.ioctl on windows
* Fix whitespace.Brett Cannon2009-09-221-42/+43
|
* When range checking was added to time.strftime() a check was placed on tm_isdstBrett Cannon2009-09-221-5/+7
| | | | | | | | | | | to make sure it fell within [-1, 1] just in case someone implementing strftime() in libc was stupid enough to assume this. Turns out, though, some OSs (e.g. zOS) are stupid enough to use values outside of this range for time structs created by the system itself. So instead of throwing a ValueError, tm_isdst is now normalized before being passed to strftime(). Fixes issue #6823. Thanks Robert Shapiro for diagnosing the problem and contributing an initial patch.
* Issue #6236, #6348: Fix various failures in the io module under AIXAntoine Pitrou2009-09-212-7/+7
| | | | | | | and other platforms, when using a non-gcc compiler. Patch by egreen. In addition, I made explicit the signedness of all bitfields in the IO library.
* Merge a newer version of libffi_osx, based on theRonald Oussoren2009-09-208-716/+713
| | | | | | version of libffi in OSX 10.6.1. This fixes issue6918
* Issue 6877: this patch makes it possible to link the readline extensionRonald Oussoren2009-09-201-0/+70
| | | | | | | | to the libedit emulation of the readline API on OSX 10.5 or later. This also adds a minimal testsuite for readline to check that the history manipuation functions have the same interface with both C libraries.
* Remove unused variable and static function to fix compiler warnings.Thomas Heller2009-09-191-11/+0
|
* #6944: the argument to PyArg_ParseTuple should be a tuple, otherwise a ↵Georg Brandl2009-09-191-5/+8
| | | | SystemError is set. Also clean up another usage of PyArg_ParseTuple.
* Issue #4606: Passing 'None' if ctypes argtype is set to POINTER(...)Thomas Heller2009-09-182-2/+6
| | | | does now always result in NULL.
* Issue #5042: Structure sub-subclass does now initialize correctly withThomas Heller2009-09-181-58/+73
| | | | base class positional arguments.
* Remove outdated include; this include was breaking OS X builds usingMark Dickinson2009-09-161-4/+0
| | | | | non-Apple gcc4.3 and gcc4.4 (because CoreFoundation/CoreFoundation.h won't compile under non-Apple gcc).
* Fix issue #1590864, multiple threads and fork() can cause deadlocks, byThomas Wouters2009-09-161-3/+31
| | | | | | | | | | | | | | | | | | | | | | acquiring the import lock around fork() calls. This prevents other threads from having that lock while the fork happens, and is the recommended way of dealing with such issues. There are two other locks we care about, the GIL and the Thread Local Storage lock. The GIL is obviously held when calling Python functions like os.fork(), and the TLS lock is explicitly reallocated instead, while also deleting now-orphaned TLS data. This only fixes calls to os.fork(), not extension modules or embedding programs calling C's fork() directly. Solving that requires a new set of API functions, and possibly a rewrite of the Python/thread_*.c mess. Add a warning explaining the problem to the documentation in the mean time. This also changes behaviour a little on AIX. Before, AIX (but only AIX) was getting the import lock reallocated, seemingly to avoid this very same problem. This is not the right approach, because the import lock is a re-entrant one, and reallocating would do the wrong thing when forking while holding the import lock. Will backport to 2.6, minus the tiny AIX behaviour change.
* tabbifyBenjamin Peterson2009-09-091-1/+1
|
* #6865 fix ref counting in initialization of pwd moduleBenjamin Peterson2009-09-081-0/+1
|
* Make ctypes compile again with older Python versions.Thomas Heller2009-09-081-0/+49
|
* #6750: TextIOWrapped could duplicate output when several threads write to it.Amaury Forgeot d'Arc2009-08-291-4/+9
| | | | this affect text files opened with io.open(), and the print() function of py3k
* Add weakref support to the thread.lock type.Gregory P. Smith2009-08-201-2/+7
|
* Expat could crash if given the wrong kind of input by never stopping itsBrett Cannon2009-08-131-1/+1
| | | | | | tokenizing step. Thanks to Ivan Krstić for the patch.
* Fix issue1628205: Socket file objects returned by socket.socket.makefile() nowGregory P. Smith2009-08-131-1/+14
| | | | | properly handles EINTR within the read, readline, write & flush methods. The socket.sendall() method now properly handles interrupted system calls.
* comment typo fixGregory P. Smith2009-08-121-1/+1
|
* Issue #6629: Fix a data corruption issue in the new `io` package, which couldAntoine Pitrou2009-08-061-0/+13
| | | | | | | | occur when writing to a BufferedRandom object (e.g. a file opened in "rb+" or "wb+" mode) after having buffered a certain amount of data for reading. This bug was not present in the pure Python implementation. Yes, this is a serious issue.
* Issue #6644: Fix compile error on AIX.Mark Dickinson2009-08-041-1/+1
|
* Issue 6637: defaultdict.copy() failed with an empty factory.Raymond Hettinger2009-08-041-1/+4
|
* Issue #6561: '\d' regular expression should not match characters ofMark Dickinson2009-07-281-1/+1
| | | | | category [No]; only those of category [Nd]. (Backport of r74237 from py3k.)
* #6553: crash in cPickle.load(), when given a StringIO with incomplete data.Amaury Forgeot d'Arc2009-07-231-0/+6
| | | | Will backport to 2.6, 3.x already fixed a similar issue with issue4298.
* Revert rev 74134, as it does not completely fixx issue #6493.Thomas Heller2009-07-211-2/+2
|
* Issue #6493: Fix a ctypes problem setting bitfields more than 31 bitsThomas Heller2009-07-211-2/+2
| | | | wide.
* Fix GCC warning about fprintf used without a string literal andAlexandre Vassalotti2009-07-171-3/+3
| | | | without format arguments.
* Initialize variables in PyCurses_getsyx() to avoid compiler warnings.Alexandre Vassalotti2009-07-171-1/+2
|
* #5910: fix kqueue for calls with more than one event.Georg Brandl2009-07-161-3/+4
|
* Issue #2389: Pickle array objects using a list representation for portabilityAlexandre Vassalotti2009-07-151-35/+33
| | | | across different machine architectures and compatibility with Python 3.x.
* #6416: Fix compilation of the select module on Windows, as well as ↵Amaury Forgeot d'Arc2009-07-091-0/+2
| | | | | | | | test_subprocess: PIPE_BUF is not defined on Windows, and probably has no meaning there. Anyway the subprocess module uses another way to perform non-blocking reads (with a thread)
* Issue #1523: Remove deprecated overflow masking in struct module, andMark Dickinson2009-07-071-219/+32
| | | | make sure that out-of-range values consistently raise struct.error.