summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* asyncio, _overlapped.ConnectPipe(): release the GILVictor Stinner2015-01-261-0/+3
|
* asyncio, Tulip issue 204: Fix IocpProactor.recv()Victor Stinner2015-01-261-2/+2
| | | | | | | | | If ReadFile() fails with ERROR_BROKEN_PIPE, the operation is not pending: don't register the overlapped. I don't know if WSARecv() can fail with ERROR_BROKEN_PIPE. Since Overlapped.WSARecv() already handled ERROR_BROKEN_PIPE, let me guess that it has the same behaviour than ReadFile().
* asyncio, Tulip issue 204: Fix IocpProactor.accept_pipe()Victor Stinner2015-01-221-2/+2
| | | | | | | | Overlapped.ConnectNamedPipe() now returns a boolean: True if the pipe is connected (if ConnectNamedPipe() failed with ERROR_PIPE_CONNECTED), False if the connection is in progress. This change removes multiple hacks in IocpProactor.
* Issue #23293, asyncio: Rewrite IocpProactor.connect_pipe()Victor Stinner2015-01-221-93/+22
| | | | | | | | Add _overlapped.ConnectPipe() which tries to connect to the pipe for asynchronous I/O (overlapped): call CreateFile() in a loop until it doesn't fail with ERROR_PIPE_BUSY. Use an increasing delay between 1 ms and 100 ms. Remove Overlapped.WaitNamedPipeAndConnect() which is no more used.
* Issue #23095, asyncio: Rewrite _WaitHandleFuture.cancel()Victor Stinner2015-01-211-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes a race conditon related to _WaitHandleFuture.cancel() leading to Python crash or "GetQueuedCompletionStatus() returned an unexpected event" logs. Before, the overlapped object was destroyed too early, it was possible that the wait completed whereas the overlapped object was already destroyed. Sometimes, a different overlapped was allocated at the same address, leading to unexpected completition. _WaitHandleFuture.cancel() now waits until the wait is cancelled to clear its reference to the overlapped object. To wait until the cancellation is done, UnregisterWaitEx() is used with an event instead of UnregisterWait(). To wait for this event, a new _WaitCancelFuture class was added. It's a simplified version of _WaitCancelFuture. For example, its cancel() method calls UnregisterWait(), not UnregisterWaitEx(). _WaitCancelFuture should not be cancelled. The overlapped object is kept alive in _WaitHandleFuture until the wait is unregistered. Other changes: * Add _overlapped.UnregisterWaitEx() * Remove fast-path in IocpProactor.wait_for_handle() to immediatly set the result if the wait already completed. I'm not sure that it's safe to call immediatly UnregisterWaitEx() before the completion was signaled. * Add IocpProactor._unregistered() to forget an overlapped which may never be signaled, but may be signaled for the next loop iteration. It avoids to block forever IocpProactor.close() if a wait was cancelled, and it may also avoid some "... unexpected event ..." warnings.
* Issue #23280: Fix docstrings for binascii.(un)hexlifyZachary Ware2015-01-202-5/+100
|
* Issue #23248: Update ssl error codes from latest OpenSSL git master.Antoine Pitrou2015-01-181-1/+296
|
* Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-185-12/+12
|
* Issue #23098: 64-bit dev_t is now supported in the os module.Serhiy Storchaka2015-01-181-12/+32
|
* fix instances of consecutive articles (closes #23221)Benjamin Peterson2015-01-131-1/+1
| | | | Patch by Karan Goel.
* Issue #21902: Replace incorrect 'hyperbolic arc sine' (etc.) with 'inverse ↵Mark Dickinson2015-01-112-6/+6
| | | | hyperbolic sine' (etc.). Remove meaningless reference to radians.
* Issue 19548: update codecs module documentationNick Coghlan2015-01-061-3/+3
| | | | | | | | - clarified the distinction between text encodings and other codecs - clarified relationship with builtin open and the io module - consolidated documentation of error handlers into one section - clarified type constraints of some behaviours - added tests for some of the new statements in the docs
* Issue #21356: Make ssl.RAND_egd() optional to support LibreSSL. TheVictor Stinner2015-01-061-0/+4
| | | | | availability of the function is checked during the compilation. Patch written by Bernard Spil.
* allow more operations to work on detached streams (closes #23093)Benjamin Peterson2014-12-222-39/+41
| | | | Patch by Martin Panter.
* Issue #15513: Added a __sizeof__ implementation for pickle classes.Serhiy Storchaka2014-12-162-2/+112
|
* allow ssl module to compile if openssl doesn't support SSL 3 (closes #22935)Benjamin Peterson2014-12-061-0/+4
| | | | Patch by Kurt Roeckx.
* Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka2014-12-052-5/+5
|
* Removed duplicated words in in comments and docs.Serhiy Storchaka2014-12-012-2/+2
|
* don't require OpenSSL SNI to pass hostname to ssl functions (#22921)Benjamin Peterson2014-11-231-6/+0
| | | | Patch by Donald Stufft.
* fix possible double free in TextIOWrapper.__init__ (closes #22849)Benjamin Peterson2014-11-121-1/+1
|
* Issue #22821: Fixed fcntl() with integer argument on 64-bit big-endianSerhiy Storchaka2014-11-101-2/+2
| | | | platforms.
* fix test where sizeof(long) != sizeof(int)Benjamin Peterson2014-11-061-4/+4
|
* Issue #20160: broken ctypes calling convention on MSVC / 64-bit Windows ↵Steve Dower2014-11-055-12/+81
| | | | (large structs) Patch by mattip
* Issue #22773: fix failing test with old readline versions due to issue #19884.Antoine Pitrou2014-11-041-0/+4
|
* Fix typo.Georg Brandl2014-10-281-1/+1
|
* #13096: Fix segfault in CTypes POINTER handling of large values.R David Murray2014-10-121-2/+8
| | | | Patch by Meador Inge.
* Closes #22568: fix UTIME_TO_* macros in posixmodule for rare cases.Georg Brandl2014-10-121-6/+6
|
* prevent passing NULL to memcpy (closes #22605)Benjamin Peterson2014-10-111-1/+1
| | | | Patch by Jakub Wilk.
* Issue #22588: Fix typo in _testcapi.test_incref_decref_API()Victor Stinner2014-10-091-1/+1
|
* Issue #22568: Fix compilation of posixmodule.c with Open Watcom: rename "utime"Victor Stinner2014-10-091-21/+21
| | | | | variable to "ut" to avoid conflict with the C utime() function. Patch written by Jeffrey Armstrong.
* Issue #21715: Extracted shared complicated code in the _io module to newSerhiy Storchaka2014-10-083-41/+6
| | | | _PyErr_ChainExceptions() function.
* Issue #22462: Fix pyexpat's creation of a dummy frame to make it appear in ↵Antoine Pitrou2014-10-084-160/+9
| | | | | | exception tracebacks. Initial patch by Mark Shannon.
* Issue #22290: Fix error handling in the _posixsubprocess module.Victor Stinner2014-10-051-6/+14
| | | | | | | | * Don't call the garbage collector with an exception set: it causes an assertion to fail in debug mode. * Enhance also error handling if allocating an array for the executable list failed. * Add an unit test for 4 different errors in the _posixsubprocess module.
* Closes #19342: improve docstrings in grp module.Georg Brandl2014-10-021-6/+6
|
* faulthandler: test_gil_released() now uses _sigsegv() instead of _read_null(),Victor Stinner2014-09-301-15/+23
| | | | | because _read_null() cannot be used on AIX. On AIX, reading from NULL is allowed: the first page of memory is a mapped read-only on AIX.
* faulthandler: _sigsegv() and _sigabrt() don't accept parametersVictor Stinner2014-09-301-2/+2
|
* Issue #22396: On 32-bit AIX platform, don't expose os.posix_fadvise() norVictor Stinner2014-09-301-4/+12
| | | | os.posix_fallocate() because their prototypes in system headers are wrong.
* merge 3.3 (#22517)Benjamin Peterson2014-09-301-0/+2
|\
| * clear BufferedRWPair weakrefs on deallocation (closes #22517)Benjamin Peterson2014-09-301-0/+2
| |
* | Issue #21860: Correct docstrings of FileIO.seek() and FileIO.truncate() methods.Berker Peksag2014-09-241-3/+5
| | | | | | | | Patch by Terry Chia.
* | Issue #22166: clear codec caches in test_codecsNick Coghlan2014-09-151-0/+54
| |
* | Issue #17095: Temporarily revert getpath.c change that added the ModulesNed Deily2014-09-151-14/+0
| | | | | | | | | | | | directory to sys.path when running from a build directory. That has proven to be problematic for several standard library modules with C extension modules whose builds can fail on some platforms.
* | Issue #21147: sqlite3 now raises an exception if the request contains a nullSerhiy Storchaka2014-09-112-1/+6
| | | | | | | | character instead of truncate it. Based on patch by Victor Stinner.
* | Issue #21951: Fixed a crash in Tkinter on AIX when called Tcl command withSerhiy Storchaka2014-09-111-0/+4
| | | | | | | | | | | | | | empty string or tuple argument. On some platforms Tcl memory allocator returns NULL when allocating zero-sized block of memory.
* | Issue #21951: Use attemptckalloc() instead of ckalloc() in Tkinter.Serhiy Storchaka2014-09-111-10/+26
| | | | | | | | | | ckalloc() causes the Tcl interpreter to panic, attemptckalloc() returns NULL if the memory allocation fails.
* | Issue #22338: Fix a crash in the json module on memory allocation failure.Victor Stinner2014-09-101-1/+2
| |
* | Issue #22369: Change "context manager protocol" to "context management ↵Serhiy Storchaka2014-09-101-2/+2
| | | | | | | | protocol".
* | Introduce and check for MPD_VERSION_HEX for precise management of buildsStefan Krah2014-08-262-4/+8
| | | | | | | | with an external libmpdec.
* | Issue #22090: Fix '%' formatting for infinities and NaNs.Stefan Krah2014-08-261-4/+7
| |
* | Issue #15696: Add a __sizeof__ implementation for mmap objects on Windows.Serhiy Storchaka2014-08-191-0/+16
| |