summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Issue #17047: remove doubled words found in 2.7 to 3.4 Modules/*,Terry Jan Reedy2013-03-1110-19/+19
| | | | as reported by Serhiy Storchaka and Matthew Barnett.
* Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the ↵Antoine Pitrou2013-03-041-6/+34
| | | | list is being resized concurrently.
* #17275: Fix class name in init errors in C bufferedio classes.R David Murray2013-02-241-2/+2
| | | | | | This fixes an apparent copy-and-paste error. Patch by Manuel Jacob.
* Issue #13153: Tkinter functions now raise TclError instead of ValueError whenSerhiy Storchaka2013-02-181-1/+1
| | | | a string argument contains non-BMP character.
* Issue #9669: Protect re against infinite loops on zero-width matching inSerhiy Storchaka2013-02-161-2/+7
| | | | non-greedy repeat. Patch by Matthew Barnett.
* Issue #13169: The maximal repetition number in a regular expression has beenSerhiy Storchaka2013-02-162-6/+17
| | | | | increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on 64-bit).
* Issue #16743: Fix mmap overflow check on 32 bit WindowsRichard Oudkerk2013-02-131-11/+11
|
* Issue #4591: Uid and gid values larger than 2**31 are supported now.Serhiy Storchaka2013-02-124-121/+254
|
* Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou2013-02-094-5/+5
| | | | | | | | in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag).
* Issue #16686: Fixed a lot of bugs in audioop module.Serhiy Storchaka2013-02-091-156/+154
| | | | | | | | | | | | * avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX. * ratecv() no more crashes on empty input fragment. * Fixed an integer overflow in ratecv(). * Fixed an integer overflow in add() and bias() for 32-bit samples. * reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples. * max() and rms() no more returns negative result for 32-bit sample -0x80000000. * minmax() now returns correct max value for 32-bit sample -0x80000000. * avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000. * add() now can return 32-bit sample -0x80000000.
* Issue #17073: Fix some integer overflows in sqlite3 module.Serhiy Storchaka2013-02-075-49/+127
|
* Issue #17089: Expat parser now correctly works with string input not only whenSerhiy Storchaka2013-02-041-4/+39
| | | | | an internal XML encoding is UTF-8 or US-ASCII. It now accepts bytes and strings larger than 2 GiB.
* #17091: update docstring for _thread.Lock.acquire.R David Murray2013-02-041-2/+2
| | | | | | The main docs were fixed to remove mention of None long ago, but the docstring was not. Reported by Armin Rigo, patch by Ian Cordasco.
* Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTupleSerhiy Storchaka2013-02-043-14/+49
| | | | parses nested mutating sequence.
* Update the embedded copy of the expat XML parser to 2.1.0. It bringsGregory P. Smith2012-07-1412-258/+374
| | | | | | | | | with it a vareity of bug fixes, both security and behavior. See http://www.libexpat.org/ for the list. NOTE: I already backported the expat hash randomization fix in March. Fixes issue #14340.
* Issue #17106: Fix a segmentation fault in io.TextIOWrapper when an underlyingSerhiy Storchaka2013-02-031-18/+44
| | | | | stream or a decoder produces data of an unexpected type (i.e. when io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).
* Back out fix for issue #13886; it introduced a new bug in interactive ↵Nadeem Vawda2013-02-021-1/+1
| | | | readline use.
* In the _hashlib module, only initialize the static data for OpenSSL'sGregory P. Smith2013-02-021-6/+9
| | | | | constructors once, to avoid memory leaks when finalizing and re-initializing the Python interpreter.
* Additional fix for Issue #12268: The io module file object writelines() ↵Gregory P. Smith2013-02-012-3/+9
| | | | methods no longer abort early when one of its write system calls is interrupted (EINTR).
* Issue #13886: Fix input() to not strip out supposedly-invalid input bytes.Nadeem Vawda2013-01-271-1/+1
| | | | | Also fix sporadic failures in test_builtin due to dependence on whether the readline module has previously been imported.
* Issue #1602133: 'environ' is not really available with shared libraries on OSXRonald Oussoren2013-01-251-3/+4
| | | | | | | There already was a workaround for this for framework builds on OSX, this changeset enables the same workaround for shared libraries. Closes #1602133
* Clean trailing whitespace in itertoolsmodule.c.Serhiy Storchaka2013-01-251-4/+4
|
* Issue #13454: Fix a crash when deleting an iterator created by itertools.tee()Serhiy Storchaka2013-01-251-1/+20
| | | | if all other iterators were very advanced before.
* Issue #16953: Fix socket module compilation on platforms with HAVE_BROKEN_POLL.Charles-François Natali2013-01-191-2/+2
| | | | Patch by Jeffrey Armstrong.
* Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-195-12/+17
| | | | | | when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
* Issue #10527: Use poll() instead of select() for multiprocessing pipesRichard Oudkerk2013-01-151-0/+33
|
* Issue #16922: fixed findtext() to return empty Unicode string instead of ↵Eli Bendersky2013-01-131-1/+1
| | | | | | empty bytes object when there's no text. Patch by Serhiy Storchaka.
* Issue #16367: Fix FileIO.readall() on Windows for files larger than 2 GBVictor Stinner2013-01-031-2/+11
|
* Issue #16828: Fix error incorrectly raised by bz2.compress('').Nadeem Vawda2013-01-021-1/+1
| | | | Patch by Martin Packman.
* Issue #9644: Fix the encoding used by os.statvfs(): use the filesystem encodingVictor Stinner2013-01-011-3/+7
| | | | with the surrogateescape error handler, instead of UTF-8 in strict mode.
* Issue #9586: Redefine SEM_FAILED on MacOSX to keep compiler happy.Richard Oudkerk2013-01-011-0/+7
|
* rename MathcObject to match object in doctrings for re module (#16760)Andrew Svetlov2012-12-251-1/+1
|
* Issue #16443: Add docstrings to regular expression match objects.Andrew Svetlov2012-12-231-15/+55
| | | | Patch by Anton Kasyanov.
* Merge with 3.1 : Don't DECREF the ctypes error_object without the GIL held.Kristjan Valur Jonsson2012-12-211-1/+1
|\
| * Don't DECREF the ctypes error_object without the GIL held.Kristjan Valur Jonsson2012-12-211-1/+1
| |
* | Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-183-5/+5
| | | | | | | | Patch by Serhiy Storchaka.
* | remove dead codeBenjamin Peterson2012-12-151-2/+0
| |
* | #16681: use "bidirectional class" instead of "bidirectional category" in the ↵Ezio Melotti2012-12-141-1/+1
| | | | | | | | docstring too.
* | Code style fixup: No need for double ((parenthesis)) and use {} on an if else.Gregory P. Smith2012-12-111-4/+5
| |
* | 1 << 31 is invalid for signed integers, fix it by making 1 unsigned.Gregory P. Smith2012-12-111-2/+2
| | | | | | | | Found by Clang trunk's Undefined-Behavior Sanitizer. [more to come]
* | Issue #16628: Fix a memory leak in ctypes.resize().Antoine Pitrou2012-12-083-2/+3
| |
* | Issue #16416: On Mac OS X, operating system data are now alwaysVictor Stinner2012-12-031-8/+0
| | | | | | | | | | | | | | encoded/decoded to/from UTF-8/surrogateescape, instead of the locale encoding (which may be ASCII if no locale environment variable is set), to avoid inconsistencies with os.fsencode() and os.fsdecode() functions which are already using UTF-8/surrogateescape.
* | Issue #10182: The re module doesn't truncate indices to 32 bits anymore.Antoine Pitrou2012-12-021-5/+5
| | | | | | | | Patch by Serhiy Storchaka.
* | Plug a leak in timemodule. The module dictionary is saved duringGregory P. Smith2012-11-271-1/+6
| | | | | | | | | | | | | | | | initialization. If the interpreter is shut down and reinitialized (embedded CPython), the old module dictionary was not dec-refed during the next import of the time extension module. Contributed by Torsten Marek of Google.
* | Issue #12848: The pure Python pickle implementation now treats object ↵Antoine Pitrou2012-11-241-1/+1
| | | | | | | | | | | | lengths as unsigned 32-bit integers, like the C implementation does. Patch by Serhiy Storchaka.
* | #16306: report only the first unknown option and add more tests. Patch by ↵Ezio Melotti2012-11-231-0/+1
| | | | | | | | Serhiy Storchaka.
* | Issue #1160: Fix compiling large regular expressions on UCS2 builds.Antoine Pitrou2012-11-202-9/+8
| | | | | | | | Patch by Serhiy Storchaka.
* | Issue #15677: Document that zlib and gzip accept a compression level of 0 to ↵Nadeem Vawda2012-11-111-3/+3
| | | | | | | | | | | | mean 'no compression'. Patch by Brian Brazil.
* | Fixes issue #9535: Fix pending signals that have been received but notGregory P. Smith2012-11-111-0/+16
| | | | | | | | yet handled by Python to not persist after os.fork() in the child process.
* | Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to ↵Nadeem Vawda2012-11-111-0/+2
| | | | | | | | | | | | access previously-freed memory. Patch by Serhiy Storchaka.