summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Issue #12607: Merge with 3.2.Ross Lagerwall2011-07-271-0/+7
|\
| * 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 a *write_through* parameter to mandate unbuffered writes.
| * 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 #12551: Provide a get_channel_binding() method on SSL sockets so asAntoine Pitrou2011-07-201-0/+60
| | | | | | | | | | | | | | | | to get channel binding data for the current SSL session (only the "tls-unique" channel binding is implemented). This allows the implementation of certain authentication mechanisms such as SCRAM-SHA-1-PLUS. Patch by Jacek Konieczny.
* | - 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 #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.
| * 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.
* | Close #6755: Add get_wch() method to curses.window classVictor Stinner2011-07-141-0/+33
| | | | | | | | Patch by Iñigo Serna.
* | Issue #12550: Add chain optional argument to faulthandler.register()Victor Stinner2011-07-131-32/+60
| | | | | | | | Call the previous signal handler if chain is True.
* | 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.
| * 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 #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 #12016: Multibyte CJK decoders now resynchronize fasterVictor Stinner2011-07-075-36/+36
| | | | | | | | | | | | | | They only ignore the first byte of an invalid byte sequence. For example, b'\xff\n'.decode('gb2312', 'replace') gives '\ufffd\n' instead of '\ufffd'.
* | Issue #9566: cast unsigned int to Py_ssize_t in md5 and sha1 modulesVictor Stinner2011-07-072-2/+2
| | | | | | | | Fix a compiler warning on Windows 64 bits.
* | Issue #12459: time.sleep() now raises a ValueError if the sleep length isVictor Stinner2011-07-051-0/+5
| | | | | | | | | | negative, instead of an infinite sleep on Windows or raising an IOError on Linux for example, to have the same behaviour on all platforms.
* | (merge 3.2) Issue #9611, #9015: FileIO.read() clamps the length to INT_MAX ↵Victor Stinner2011-07-051-0/+8
|\ \ | |/ | | | | on Windows.
| * Issue #9611, #9015: FileIO.read() clamps the length to INT_MAX on Windows.Victor Stinner2011-07-051-0/+8
| |
* | Issue #9642: Uniformize the tests on the availability of the mbcs codecVictor Stinner2011-07-042-6/+6
| | | | | | | | Add a new HAVE_MBCS define.
* | Issue #9642: Fix the definition of time.clock() on WindowsVictor Stinner2011-07-041-29/+25
| | | | | | | | | | Don't unset and set againt the HAVE_CLOCK define, reorder the #if tests instead. Fix also the definition of the timezone encoding.
* | Issue #12462: time.sleep() now calls immediatly the (Python) signal handler ifVictor Stinner2011-07-011-6/+11
| | | | | | | | | | | | | | it is interrupted by a signal, instead of having to wait until the next instruction. Patch reviewed by Antoine Pitrou.
* | Issue #12442: add shutil.disk_usage()Giampaolo Rodola'2011-07-011-0/+27
| |
* | faulthandler: add missing include, pthread.h, for FreeBSD 6Victor Stinner2011-06-291-0/+4
| |
* | merge 3.2Benjamin Peterson2011-06-271-1/+1
|\ \ | |/
| * Fix closes issue 11568 - update select.epoll.register docstring with mention ↵Senthil Kumaran2011-06-271-1/+1
| | | | | | | | of correct behavior.
* | Issue #12303: Add sigwaitinfo() and sigtimedwait() to the signal module.Ross Lagerwall2011-06-251-1/+153
| |
* | Merge with 3.2 (Issue #12404).Ross Lagerwall2011-06-251-1/+2
|\ \ | |/
| * Issue 12404: Remove C89 incompatible code from mmap module.Ross Lagerwall2011-06-251-1/+2
| | | | | | | | Patch by Akira Kitada.
* | Issue #6697: _lsprof: normalizeUserObj() doesn't encode/decode (UTF-8) theVictor Stinner2011-06-201-26/+19
| | | | | | | | | | | | | | | | module name anymore, only work on unicode strings. Therefore it doesn't truncate module names with embedded NUL characters, or fail if the module name contains surrogate characters (UTF-8 encoder fails on a surrogate character). Patch written by Alexander Belopolsky.
* | 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
| | |