summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* - Issue #10309: Define _GNU_SOURCE so that mremap() gets the properBarry Warsaw2011-07-191-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 whenAntoine Pitrou2011-07-151-0/+2
| | | | embedding Python. Patch by Andreas Stührk.
* Raise ValueError when attempting to set the _CHUNK_SIZE attribute of a ↵Antoine Pitrou2011-07-131-1/+1
| | | | TextIOWrapper to a huge value, not TypeError.
* Issue #12440: When testing whether some bits in SSLContext.options can beAntoine Pitrou2011-07-081-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 Stinner2011-07-051-0/+8
|
* Fix closes issue 11568 - update select.epoll.register docstring with mention ↵Senthil Kumaran2011-06-271-1/+1
| | | | of correct behavior.
* Issue 12404: Remove C89 incompatible code from mmap module.Ross Lagerwall2011-06-251-1/+2
| | | | Patch by Akira Kitada.
* posixmodule.c: fix function name in argument parsingVictor Stinner2011-06-171-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 Curtin2011-06-141-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 Curtin2011-06-131-0/+40
|\
| * Correction to 88e318166eaf - Issue #11583Brian Curtin2011-06-091-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 Curtin2011-06-081-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 Curtin2011-06-131-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 codecsVictor Stinner2011-06-032-51/+52
|
* Branch mergeÉric Araujo2011-06-011-1/+1
|\
| * Fix error message to use the Python name instead of the C nameÉric Araujo2011-05-311-1/+1
| |
* | merge 3.1Benjamin Peterson2011-06-011-1/+1
|\ \
| * | return NULL on errorBenjamin Peterson2011-06-011-1/+1
| | |
* | | be extra careful with a borrowed reference when the GIL could be released ↵Benjamin Peterson2011-06-011-0/+2
| | | | | | | | | | | | (closes #8578)
* | | merge 3.1 (#12221)Benjamin Peterson2011-06-011-21/+5
|\ \ \ | |/ / | | / | |/ |/|
| * simply use the Python version for pyexpat.__version__ #12221Benjamin Peterson2011-05-311-21/+5
| |
* | Issue #12090: backport 79fcd71d0356Stefan Krah2011-05-251-0/+6
| |
* | (Merge 3.1) Issue #12175: RawIOBase.readall() now returns None if read()Victor Stinner2011-05-251-0/+8
|\ \ | |/ | | | | returns None.
| * Issue #12175: RawIOBase.readall() now returns None if read() returns None.Victor Stinner2011-05-251-0/+8
| |
* | (Merge 3.1) Issue #12175: FileIO.readall() now raises a ValueError instead ofVictor Stinner2011-05-251-0/+2
|\ \ | |/ | | | | an IOError if the file is closed.
| * Issue #12175: FileIO.readall() now raises a ValueError instead of an IOError ifVictor Stinner2011-05-251-0/+2
| | | | | | | | the file is closed.
* | (Merge 3.1) Issue #12100: Don't reset incremental encoders of CJK codecs atVictor Stinner2011-05-241-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 toVictor Stinner2011-05-241-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 toVictor Stinner2011-05-191-24/+23
|\ \ | |/ | | | | zlib.decompress() anymore to be able to unload the module.
| * Issue #12124: zipimport doesn't keep a reference to zlib.decompress() anymoreVictor Stinner2011-05-191-24/+23
| | | | | | | | to be able to unload the module.
| * Issue #10756: atexit normalizes the exception before displaying it. Patch byVictor Stinner2011-05-151-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 theVictor Stinner2011-05-151-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 Stinner2011-05-151-3/+3
| | | | | | | | Patch written by Charles-François Natali.
* | Merge: #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.Nadeem Vawda2011-05-141-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 Vawda2011-05-141-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 Vawda2011-05-141-10/+21
| |
* | Fix memory leaks in zlib.compress() and .decompress().Nadeem Vawda2011-05-141-14/+11
| | | | | | | | Also, make sure that test_zlib tests decompress() for overly-large inputs.
* | Merge: #12050: zlib.decompressobj().decompress() now clears the unconsumed_tailNadeem Vawda2011-05-141-7/+12
|\ \ | |/ | | | | attribute when called without a max_length argument.
| * Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tailNadeem Vawda2011-05-141-7/+12
| | | | | | | | attribute when called without a max_length argument.
* | Issue #12062: Fix a flushing bug when doing a certain type of I/O sequenceAntoine Pitrou2011-05-121-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 sequenceAntoine Pitrou2011-05-121-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.1Kurt B. Kaiser2011-05-111-1/+13
|\ \ | |/
| * Issue #1028: Tk returns invalid Unicode null in %A: UnicodeDecodeError.Kurt B. Kaiser2011-05-111-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 Melotti2011-05-101-2/+15
|\ \ | |/
| * #12051: Fix segfault in json.dumps() while encoding highly-nested objects ↵Ezio Melotti2011-05-101-2/+15
| | | | | | | | using the C accelerations.
* | Issue #8498: In socket.accept(), allow to specify 0 as a backlog value inAntoine Pitrou2011-05-101-4/+7
| | | | | | | | order to accept exactly one connection. Patch by Daniel Evers.
* | (Merge 3.1) Issue #12012: ssl.PROTOCOL_SSLv2 becomes optionalVictor Stinner2011-05-091-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 optionalVictor Stinner2011-05-091-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 Melotti2011-05-071-2/+13
|\ \ | |/
| * #12017: Fix segfault in json.loads() while decoding highly-nested objects ↵Ezio Melotti2011-05-071-2/+13
| | | | | | | | using the C accelerations.