summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Issue #13058: ossaudiodev: fix a file descriptor leak on error. Patch by ThomasCharles-François Natali2011-09-291-0/+1
| | | | Jarosch.
* Issue #13013: ctypes: Fix a reference leak in PyCArrayType_from_ctype.Meador Inge2011-09-281-0/+1
| | | | Thanks to Suman Saha for finding the bug and providing a patch.
* Issue #12973: Fix itertools bug caused by signed integer overflow. Thanks ↵Mark Dickinson2011-09-241-1/+3
| | | | Stefan Krah.
* fix compiler compliant about \0 not being an opcodeBenjamin Peterson2011-09-231-6/+5
|
* Close #13022: _multiprocessing.recvfd() doesn't check that file descriptor ↵Jesus Cea2011-09-211-0/+11
| | | | was actually received
* Issue #12483: ctypes: Fix a crash when the destruction of a callbackAmaury Forgeot d'Arc2011-09-121-0/+1
| | | | object triggers the garbage collector.
* Close #12950: multiprocessing "test_fd_transfer" fails under OpenIndianaJesus Cea2011-09-101-11/+23
|
* cast to getterBenjamin Peterson2011-09-061-1/+1
|
* add a __dict__ descr for IOBase (closes #12878)Benjamin Peterson2011-09-031-0/+14
|
* Issue #12764: Fix a crash in ctypes when the name of a Structure field is notAmaury Forgeot d'Arc2011-09-021-2/+15
| | | | a string.
* Issue #11241: subclasses of ctypes.Array can now be subclassed.Amaury Forgeot d'Arc2011-08-301-40/+39
|
* Issue #9651: Fix a crash when ctypes.create_string_buffer(0) was passed toAmaury Forgeot d'Arc2011-08-301-2/+4
| | | | some functions like file.write().
* Issue #12847: Fix a crash with negative PUT and LONG_BINPUT arguments inAntoine Pitrou2011-08-291-1/+10
| | | | the C pickle implementation.
* Issue #11564: Avoid crashes when trying to pickle huge objects or containersAntoine Pitrou2011-08-291-72/+103
| | | | (more than 2**31 items). Instead, in most cases, an OverflowError is raised.
* Issue #12287: Fix a stack corruption in ossaudiodev module when the FD isCharles-François Natali2011-08-284-19/+11
| | | | greater than FD_SETSIZE.
* Issue #12839: Fix crash in zlib module due to version mismatch.Nadeem Vawda2011-08-281-1/+7
| | | | | | | | | If the version of zlib used to compile the zlib module is incompatible with the one that is actually linked in, then calls into zlib will fail. This can leave attributes of the z_stream uninitialized, so we must take care to avoid segfaulting by trying to use an invalid pointer. Fix by Richard M. Tew.
* Issue #11657: Fix sending file descriptors over 255 over a multiprocessing Pipe.Antoine Pitrou2011-08-231-2/+2
| | | | Also added some tests.
* Issue #12213: Fix a buffering bug with interleaved reads and writes thatAntoine Pitrou2011-08-201-59/+58
| | | | could appear on BufferedRandom streams.
* #12725: fix working. Patch by Ben Hayden.Ezio Melotti2011-08-141-3/+3
|
* Issue #12687: Fix a possible buffering bug when unpickling text mode ↵Antoine Pitrou2011-08-111-2/+1
| | | | (protocol 0, mostly) pickles.
* dosmodule is, thankfully, no moreBenjamin Peterson2011-08-041-2/+0
|
* Issue #12607: In subprocess, fix issue where if stdin, stdout or stderr isRoss Lagerwall2011-07-271-0/+7
| | | | given as a low fd, it gets overwritten.
* Issue #12591: Allow io.TextIOWrapper to work with raw IO objects (withoutAntoine Pitrou2011-07-231-6/+14
| | | | | a read1() method), and add an undocumented *write_through* parameter to mandate unbuffered writes.
* - 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.