summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* calculate_path() decodes the PYTHONPATH environment variable from the localeVictor Stinner2011-06-201-7/+9
| | | | | | encoding using _Py_char2wchar() instead of mbstowcs() to store undecodable bytes as surrogates characters (PEP 383) instead of ignoring silently the PYTHONPATH variable.
* (Merge 3.2) posixmodule.c: fix function name in argument parsingVictor Stinner2011-06-171-9/+9
|\ | | | | | | | | | | Fix os.fchown() and os.open() Remove also trailing spaces and replace tabs by spaces.
| * 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.
* | Merge 3.2 - update to the fix for #12084Brian Curtin2011-06-141-10/+11
|\ \ | |/
| * 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
| |\
* | \ branch mergeBrian Curtin2011-06-131-95/+142
|\ \ \
| * \ \ Merge from 3.2 for Issue #12084.Brian Curtin2011-06-131-95/+142
| |\ \ \ | | |/ /
| | * | 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 #12287: In ossaudiodev, check that the device isn't closed in severalCharles-François Natali2011-06-111-0/+91
| | | | | | | | | | | | | | | | methods.
* | | | Issue #9344: Add os.getgrouplist().Ross Lagerwall2011-06-101-0/+67
| | | |
* | | | Issue #8407: signal.sigwait() releases the GILVictor Stinner2011-06-091-0/+2
| | | | | | | | | | | | | | | | Initial patch by Charles-François Natali.
* | | | 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.