Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | - Issue #10309: Define _GNU_SOURCE so that mremap() gets the proper | Barry Warsaw | 2011-07-19 | 1 | -0/+5 |
| | | | | | signature. Without this, architectures where sizeof void* != sizeof int are broken. Patch given by Hallvard B Furuseth. | ||||
* | Issue #11321: Fix a crash with multiple imports of the _pickle module when | Antoine Pitrou | 2011-07-15 | 1 | -0/+2 |
| | | | | embedding Python. Patch by Andreas Stührk. | ||||
* | Raise ValueError when attempting to set the _CHUNK_SIZE attribute of a ↵ | Antoine Pitrou | 2011-07-13 | 1 | -1/+1 |
| | | | | TextIOWrapper to a huge value, not TypeError. | ||||
* | Issue #12440: When testing whether some bits in SSLContext.options can be | Antoine Pitrou | 2011-07-08 | 1 | -9/+25 |
| | | | | | reset, check the version of the OpenSSL headers Python was compiled against, rather than the runtime version of the OpenSSL library. | ||||
* | Issue #9611, #9015: FileIO.read() clamps the length to INT_MAX on Windows. | Victor Stinner | 2011-07-05 | 1 | -0/+8 |
| | |||||
* | Fix closes issue 11568 - update select.epoll.register docstring with mention ↵ | Senthil Kumaran | 2011-06-27 | 1 | -1/+1 |
| | | | | of correct behavior. | ||||
* | Issue 12404: Remove C89 incompatible code from mmap module. | Ross Lagerwall | 2011-06-25 | 1 | -1/+2 |
| | | | | Patch by Akira Kitada. | ||||
* | posixmodule.c: fix function name in argument parsing | Victor Stinner | 2011-06-17 | 1 | -22/+22 |
| | | | | | | Fix os.fchown() and os.open() Remove also trailing spaces and replace tabs by spaces. | ||||
* | Correct completely broken os.stat behavior on Windows XP. | Brian Curtin | 2011-06-14 | 1 | -10/+11 |
| | | | | | | | | | | | | After 1a3e8db28d49, Windows XP could not os.stat at all due to raising immediately when GetFinalPathNameByHandle wasn't available (pre-Vista). The proper behavior in that situation is to just not attempt a traversal rather than outright rejecting. This change additionally handles a failed malloc by setting the error code and returning false. Patch by Hirokazu Yamamoto. | ||||
* | branch merge? | Brian Curtin | 2011-06-13 | 1 | -0/+40 |
|\ | |||||
| * | Correction to 88e318166eaf - Issue #11583 | Brian Curtin | 2011-06-09 | 1 | -1/+4 |
| | | | | | | | | | | | | Rather than wrapping the C _isdir function in a Python function, just import the C _isdir function directly. Additionally, add in the docstring which was left out. | ||||
| * | Fix #11583. Changed os.path.isdir to use GetFileAttributes instead of os.stat. | Brian Curtin | 2011-06-08 | 1 | -0/+37 |
| | | | | | | | | | | | | | | | | | | By changing to the Windows GetFileAttributes API in nt._isdir we can figure out if the path is a directory without opening the file via os.stat. This has the minor benefit of speeding up os.path.isdir by at least 2x for regular files and 10-15x improvements were seen on symbolic links (which opened the file multiple times during os.stat). Since os.path.isdir is used in several places on interpreter startup, we get a minor speedup in startup time. | ||||
* | | Fix #12084. os.stat on Windows wasn't working properly with relative symlinks. | Brian Curtin | 2011-06-13 | 1 | -96/+143 |
|/ | | | | | | | | | | | Use of DeviceIoControl to obtain the symlink path via the reparse tag was removed. The code now uses GetFinalPathNameByHandle in the case of a symbolic link and works properly given the added test which creates a symbolic link and calls os.stat on it from multiple locations. Victor Stinner also noticed an issue with os.lstat following the os.stat code path when being passed bytes. The posix_lstat function was adjusted to properly hook up win32_lstat instead of the previous STAT macro (win32_stat). | ||||
* | Issue #12016: Reindent decoders of HK and JP codecs | Victor Stinner | 2011-06-03 | 2 | -51/+52 |
| | |||||
* | Branch merge | Éric Araujo | 2011-06-01 | 1 | -1/+1 |
|\ | |||||
| * | Fix error message to use the Python name instead of the C name | Éric Araujo | 2011-05-31 | 1 | -1/+1 |
| | | |||||
* | | merge 3.1 | Benjamin Peterson | 2011-06-01 | 1 | -1/+1 |
|\ \ | |||||
| * | | return NULL on error | Benjamin Peterson | 2011-06-01 | 1 | -1/+1 |
| | | | |||||
* | | | be extra careful with a borrowed reference when the GIL could be released ↵ | Benjamin Peterson | 2011-06-01 | 1 | -0/+2 |
| | | | | | | | | | | | | (closes #8578) | ||||
* | | | merge 3.1 (#12221) | Benjamin Peterson | 2011-06-01 | 1 | -21/+5 |
|\ \ \ | |/ / | | / | |/ |/| | |||||
| * | simply use the Python version for pyexpat.__version__ #12221 | Benjamin Peterson | 2011-05-31 | 1 | -21/+5 |
| | | |||||
* | | Issue #12090: backport 79fcd71d0356 | Stefan Krah | 2011-05-25 | 1 | -0/+6 |
| | | |||||
* | | (Merge 3.1) Issue #12175: RawIOBase.readall() now returns None if read() | Victor Stinner | 2011-05-25 | 1 | -0/+8 |
|\ \ | |/ | | | | | returns None. | ||||
| * | Issue #12175: RawIOBase.readall() now returns None if read() returns None. | Victor Stinner | 2011-05-25 | 1 | -0/+8 |
| | | |||||
* | | (Merge 3.1) Issue #12175: FileIO.readall() now raises a ValueError instead of | Victor Stinner | 2011-05-25 | 1 | -0/+2 |
|\ \ | |/ | | | | | an IOError if the file is closed. | ||||
| * | Issue #12175: FileIO.readall() now raises a ValueError instead of an IOError if | Victor Stinner | 2011-05-25 | 1 | -0/+2 |
| | | | | | | | | the file is closed. | ||||
* | | (Merge 3.1) Issue #12100: Don't reset incremental encoders of CJK codecs at | Victor Stinner | 2011-05-24 | 1 | -4/+4 |
|\ \ | |/ | | | | | | | each call to their encode() method anymore, but continue to call the reset() method if the final argument is True. | ||||
| * | Issue #12100: Don't reset incremental encoders of CJK codecs at each call to | Victor Stinner | 2011-05-24 | 1 | -4/+4 |
| | | | | | | | | | | their encode() method anymore, but continue to call the reset() method if the final argument is True. | ||||
* | | (Merge 3.1) Issue #12124: zipimport doesn't keep a reference to | Victor Stinner | 2011-05-19 | 1 | -24/+23 |
|\ \ | |/ | | | | | zlib.decompress() anymore to be able to unload the module. | ||||
| * | Issue #12124: zipimport doesn't keep a reference to zlib.decompress() anymore | Victor Stinner | 2011-05-19 | 1 | -24/+23 |
| | | | | | | | | to be able to unload the module. | ||||
| * | Issue #10756: atexit normalizes the exception before displaying it. Patch by | Victor Stinner | 2011-05-15 | 1 | -0/+1 |
| | | | | | | | | | | | | Andreas Stührk. Backport a fix already applied to Python 3.2+ (4a82be47a948 + 5060a92a8597). | ||||
* | | (Merge 3.1) Issue #12060: Use sig_atomic_t type and volatile keyword in the | Victor Stinner | 2011-05-15 | 1 | -3/+3 |
|\ \ | |/ | | | | | signal module. Patch written by Charles-François Natali. | ||||
| * | Issue #12060: Use sig_atomic_t type and volatile keyword in the signal module. | Victor Stinner | 2011-05-15 | 1 | -3/+3 |
| | | | | | | | | Patch written by Charles-François Natali. | ||||
* | | Merge: #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean. | Nadeem Vawda | 2011-05-14 | 1 | -14/+23 |
|\ \ | |/ | | | | | | | Raise an OverflowError if the input data is too large, instead of silently truncating the input and returning an incorrect result. | ||||
| * | Issue #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean. | Nadeem Vawda | 2011-05-14 | 1 | -14/+23 |
| | | | | | | | | | | Raise an OverflowError if the input data is too large, instead of silently truncating the input and returning an incorrect result. | ||||
| * | Issue #8650: Backport 64-bit safety fixes for compress() and decompress(). | Nadeem Vawda | 2011-05-14 | 1 | -10/+21 |
| | | |||||
* | | Fix memory leaks in zlib.compress() and .decompress(). | Nadeem Vawda | 2011-05-14 | 1 | -14/+11 |
| | | | | | | | | Also, make sure that test_zlib tests decompress() for overly-large inputs. | ||||
* | | Merge: #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail | Nadeem Vawda | 2011-05-14 | 1 | -7/+12 |
|\ \ | |/ | | | | | attribute when called without a max_length argument. | ||||
| * | Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail | Nadeem Vawda | 2011-05-14 | 1 | -7/+12 |
| | | | | | | | | attribute when called without a max_length argument. | ||||
* | | Issue #12062: Fix a flushing bug when doing a certain type of I/O sequence | Antoine Pitrou | 2011-05-12 | 1 | -1/+1 |
|\ \ | |/ | | | | | | | | | on a file opened in read+write mode (namely: reading, seeking a bit forward, writing, then seeking before the previous write but still within buffered data, and writing again). | ||||
| * | Issue #12062: Fix a flushing bug when doing a certain type of I/O sequence | Antoine Pitrou | 2011-05-12 | 1 | -1/+1 |
| | | | | | | | | | | | | on a file opened in read+write mode (namely: reading, seeking a bit forward, writing, then seeking before the previous write but still within buffered data, and writing again). | ||||
* | | Merge from 3.1 | Kurt B. Kaiser | 2011-05-11 | 1 | -1/+13 |
|\ \ | |/ | |||||
| * | Issue #1028: Tk returns invalid Unicode null in %A: UnicodeDecodeError. | Kurt B. Kaiser | 2011-05-11 | 1 | -1/+13 |
| | | | | | | | | | | With Tk < 8.5 _tkinter.c:PythonCmd() raised UnicodeDecodeError, caused IDLE to exit. Converted to valid Unicode null in PythonCmd(). | ||||
* | | #12051: merge with 3.1. | Ezio Melotti | 2011-05-10 | 1 | -2/+15 |
|\ \ | |/ | |||||
| * | #12051: Fix segfault in json.dumps() while encoding highly-nested objects ↵ | Ezio Melotti | 2011-05-10 | 1 | -2/+15 |
| | | | | | | | | using the C accelerations. | ||||
* | | Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in | Antoine Pitrou | 2011-05-10 | 1 | -4/+7 |
| | | | | | | | | order to accept exactly one connection. Patch by Daniel Evers. | ||||
* | | (Merge 3.1) Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional | Victor Stinner | 2011-05-09 | 1 | -1/+7 |
|\ \ | |/ | | | | | | | | | | | OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2 protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid. Optimize also ssl.get_protocol_name(): speed does matter! | ||||
| * | Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional | Victor Stinner | 2011-05-09 | 1 | -1/+7 |
| | | | | | | | | | | | | | | OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2 protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid. Optimize also ssl.get_protocol_name(): speed does matter! | ||||
* | | #12017: merge with 3.1. | Ezio Melotti | 2011-05-07 | 1 | -2/+13 |
|\ \ | |/ | |||||
| * | #12017: Fix segfault in json.loads() while decoding highly-nested objects ↵ | Ezio Melotti | 2011-05-07 | 1 | -2/+13 |
| | | | | | | | | using the C accelerations. |