summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Merge 3.2Brian Curtin2011-06-091-1/+4
|\
| * 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 #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.
* | Issue #12021: Make mmap's read() method argument optional. Patch by PetriCharles-François Natali2011-06-081-2/+24
| | | | | | | | Lehtinen.
* | Issue #9205: concurrent.futures.ProcessPoolExecutor now detects killedAntoine Pitrou2011-06-081-16/+374
| | | | | | | | | | children and raises BrokenProcessPool in such a situation. Previously it would reliably freeze/deadlock.
* | Revert a reversed comparison order introduced in r70695.Brett Cannon2011-06-081-1/+1
| |
* | Remove a redundant assignment.Brett Cannon2011-06-071-1/+1
| | | | | | | | Found by LLVM/clang 2.9.
* | Checking if an unsigned long is < 0 is pointless.Brett Cannon2011-06-071-3/+3
| | | | | | | | Found by LLVM/clang 2.9.
* | Remove some extraneous parentheses and swap the comparison order toBrett Cannon2011-06-071-1/+1
| | | | | | | | | | | | prevent accidental assignment. Silences a warning from LLVM/clang 2.9.
* | Issue #12196: Make os.pipe2() flags argument mandatory.Charles-François Natali2011-06-061-8/+9
| |
* | always clear parser errorBenjamin Peterson2011-06-061-1/+1
| |
* | merge heads.Gregory P. Smith2011-06-0520-133/+288
|\ \
| * | only clear the parser error if it's set (closes #12264)Benjamin Peterson2011-06-051-2/+3
| | |
| * | (Merge 3.2) Issue #12016: Reindent decoders of HK and JP codecsVictor Stinner2011-06-032-51/+52
| |\ \ | | |/
| | * Issue #12016: Reindent decoders of HK and JP codecsVictor Stinner2011-06-032-51/+52
| | |
| * | Merge 3.2Éric Araujo2011-06-011-1/+1
| |\ \ | | |/
| | * 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
| | | | |
| * | | | merge 3.2Benjamin Peterson2011-06-011-0/+2
| |\ \ \ \ | | |/ / /
| | * | | be extra careful with a borrowed reference when the GIL could be released ↵Benjamin Peterson2011-06-011-0/+2
| | | | | | | | | | | | | | | | | | | | (closes #8578)
| * | | | remove __version__s dependent on subversion keyword expansion (closes #12221)Benjamin Peterson2011-06-011-5/+0
| | | | |
| * | | | merge 3.2 (#12221)Benjamin Peterson2011-06-011-21/+5
| |\ \ \ \ | | |/ / /
| | * | | 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
| | | |
| * | | Close #12229: Remove an unused argument of _bufferedreader_peek_unlocked(),Victor Stinner2011-05-311-3/+3
| | | | | | | | | | | | | | | | io.BufferedReader._peek_unlocked(). Patch written by John O'Connor.
| * | | Close #12171: IncrementalEncoder.reset() of CJK codecs (multibytecodec) callsVictor Stinner2011-05-301-4/+10
| | | | | | | | | | | | | | | | encreset() instead of decreset().
| * | | Issue #12196: Add pipe2() to the os module.Charles-François Natali2011-05-291-0/+28
| | | |
| * | | _posixsubprocess.c: don't redefine _GNU_SOURCE if it's already definedVictor Stinner2011-05-261-2/+2
| | | |
| * | | socket.sendto(): exit directly after setting the errorVictor Stinner2011-05-261-4/+5
| | | | | | | | | | | | | | | | Dummy change to avoid a false positive with the Clang Static Analyzer.
| * | | zipimport: initialize fullpath to NULLVictor Stinner2011-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | In some cases, fullpath value is used whereas fullpath was not always initialized. Warning found by the Clang Static Analyzer.
| * | | Remove useless assignmentsVictor Stinner2011-05-261-5/+4
| | | | | | | | | | | | | | | | Warnings found by the the Clang Static Analyzer.
| * | | Issue #12175: BufferedReader.read(-1) now calls raw.readall() if available.Victor Stinner2011-05-253-11/+40
| | | |
| * | | Issue #12175: FileIO.readall() now only reads the file position and size once.Victor Stinner2011-05-251-7/+30
| | | |
| * | | (Merge 3.2) Issue #12175: RawIOBase.readall() now returns None if read()Victor Stinner2011-05-251-0/+8
| |\ \ \ | | |/ / | | | | | | | | returns None.
| | * | (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.2) Issue #12175: FileIO.readall() now raises a ValueError instead ofVictor Stinner2011-05-251-0/+2
| |\ \ \ | | |/ / | | | | | | | | an IOError if the file is closed.
| | * | (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.
| * | | Fast path for IncrementalNewlineDecoder.decode() in io.TextIOWrapper.read(-1)Victor Stinner2011-05-251-2/+7
| | | | | | | | | | | | | | | | Copy/paste code from textiowrapper_read_chunk().
| * | | Issue #8407: Fix the signal handler of the signal module: if it is calledVictor Stinner2011-05-251-4/+5
| | | | | | | | | | | | | | | | twice, it now writes the number of the second signal into the wakeup fd.
| * | | (Merge 3.2) 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.
| | * | (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.
| * | | Issue #12049: Add RAND_bytes() and RAND_pseudo_bytes() functions to the sslVictor Stinner2011-05-241-0/+67
| | | | | | | | | | | | | | | | module.
| * | | Issue #6501: os.device_encoding() returns None on Windows if the applicationVictor Stinner2011-05-231-10/+13
| | | | | | | | | | | | | | | | has no console.