Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | asyncio, _overlapped.ConnectPipe(): release the GIL | Victor Stinner | 2015-01-26 | 1 | -0/+3 |
| | |||||
* | asyncio, Tulip issue 204: Fix IocpProactor.recv() | Victor Stinner | 2015-01-26 | 1 | -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 Stinner | 2015-01-22 | 1 | -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 Stinner | 2015-01-22 | 1 | -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 Stinner | 2015-01-21 | 1 | -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)hexlify | Zachary Ware | 2015-01-20 | 2 | -5/+100 |
| | |||||
* | Issue #23248: Update ssl error codes from latest OpenSSL git master. | Antoine Pitrou | 2015-01-18 | 1 | -1/+296 |
| | |||||
* | Issue #23181: More "codepoint" -> "code point". | Serhiy Storchaka | 2015-01-18 | 5 | -12/+12 |
| | |||||
* | Issue #23098: 64-bit dev_t is now supported in the os module. | Serhiy Storchaka | 2015-01-18 | 1 | -12/+32 |
| | |||||
* | fix instances of consecutive articles (closes #23221) | Benjamin Peterson | 2015-01-13 | 1 | -1/+1 |
| | | | | Patch by Karan Goel. | ||||
* | Issue #21902: Replace incorrect 'hyperbolic arc sine' (etc.) with 'inverse ↵ | Mark Dickinson | 2015-01-11 | 2 | -6/+6 |
| | | | | hyperbolic sine' (etc.). Remove meaningless reference to radians. | ||||
* | Issue 19548: update codecs module documentation | Nick Coghlan | 2015-01-06 | 1 | -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. The | Victor Stinner | 2015-01-06 | 1 | -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 Peterson | 2014-12-22 | 2 | -39/+41 |
| | | | | Patch by Martin Panter. | ||||
* | Issue #15513: Added a __sizeof__ implementation for pickle classes. | Serhiy Storchaka | 2014-12-16 | 2 | -2/+112 |
| | |||||
* | allow ssl module to compile if openssl doesn't support SSL 3 (closes #22935) | Benjamin Peterson | 2014-12-06 | 1 | -0/+4 |
| | | | | Patch by Kurt Roeckx. | ||||
* | Issue #22581: Use more "bytes-like object" throughout the docs and comments. | Serhiy Storchaka | 2014-12-05 | 2 | -5/+5 |
| | |||||
* | Removed duplicated words in in comments and docs. | Serhiy Storchaka | 2014-12-01 | 2 | -2/+2 |
| | |||||
* | don't require OpenSSL SNI to pass hostname to ssl functions (#22921) | Benjamin Peterson | 2014-11-23 | 1 | -6/+0 |
| | | | | Patch by Donald Stufft. | ||||
* | fix possible double free in TextIOWrapper.__init__ (closes #22849) | Benjamin Peterson | 2014-11-12 | 1 | -1/+1 |
| | |||||
* | Issue #22821: Fixed fcntl() with integer argument on 64-bit big-endian | Serhiy Storchaka | 2014-11-10 | 1 | -2/+2 |
| | | | | platforms. | ||||
* | fix test where sizeof(long) != sizeof(int) | Benjamin Peterson | 2014-11-06 | 1 | -4/+4 |
| | |||||
* | Issue #20160: broken ctypes calling convention on MSVC / 64-bit Windows ↵ | Steve Dower | 2014-11-05 | 5 | -12/+81 |
| | | | | (large structs) Patch by mattip | ||||
* | Issue #22773: fix failing test with old readline versions due to issue #19884. | Antoine Pitrou | 2014-11-04 | 1 | -0/+4 |
| | |||||
* | Fix typo. | Georg Brandl | 2014-10-28 | 1 | -1/+1 |
| | |||||
* | #13096: Fix segfault in CTypes POINTER handling of large values. | R David Murray | 2014-10-12 | 1 | -2/+8 |
| | | | | Patch by Meador Inge. | ||||
* | Closes #22568: fix UTIME_TO_* macros in posixmodule for rare cases. | Georg Brandl | 2014-10-12 | 1 | -6/+6 |
| | |||||
* | prevent passing NULL to memcpy (closes #22605) | Benjamin Peterson | 2014-10-11 | 1 | -1/+1 |
| | | | | Patch by Jakub Wilk. | ||||
* | Issue #22588: Fix typo in _testcapi.test_incref_decref_API() | Victor Stinner | 2014-10-09 | 1 | -1/+1 |
| | |||||
* | Issue #22568: Fix compilation of posixmodule.c with Open Watcom: rename "utime" | Victor Stinner | 2014-10-09 | 1 | -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 new | Serhiy Storchaka | 2014-10-08 | 3 | -41/+6 |
| | | | | _PyErr_ChainExceptions() function. | ||||
* | Issue #22462: Fix pyexpat's creation of a dummy frame to make it appear in ↵ | Antoine Pitrou | 2014-10-08 | 4 | -160/+9 |
| | | | | | | exception tracebacks. Initial patch by Mark Shannon. | ||||
* | Issue #22290: Fix error handling in the _posixsubprocess module. | Victor Stinner | 2014-10-05 | 1 | -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 Brandl | 2014-10-02 | 1 | -6/+6 |
| | |||||
* | faulthandler: test_gil_released() now uses _sigsegv() instead of _read_null(), | Victor Stinner | 2014-09-30 | 1 | -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 parameters | Victor Stinner | 2014-09-30 | 1 | -2/+2 |
| | |||||
* | Issue #22396: On 32-bit AIX platform, don't expose os.posix_fadvise() nor | Victor Stinner | 2014-09-30 | 1 | -4/+12 |
| | | | | os.posix_fallocate() because their prototypes in system headers are wrong. | ||||
* | merge 3.3 (#22517) | Benjamin Peterson | 2014-09-30 | 1 | -0/+2 |
|\ | |||||
| * | clear BufferedRWPair weakrefs on deallocation (closes #22517) | Benjamin Peterson | 2014-09-30 | 1 | -0/+2 |
| | | |||||
* | | Issue #21860: Correct docstrings of FileIO.seek() and FileIO.truncate() methods. | Berker Peksag | 2014-09-24 | 1 | -3/+5 |
| | | | | | | | | Patch by Terry Chia. | ||||
* | | Issue #22166: clear codec caches in test_codecs | Nick Coghlan | 2014-09-15 | 1 | -0/+54 |
| | | |||||
* | | Issue #17095: Temporarily revert getpath.c change that added the Modules | Ned Deily | 2014-09-15 | 1 | -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 null | Serhiy Storchaka | 2014-09-11 | 2 | -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 with | Serhiy Storchaka | 2014-09-11 | 1 | -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 Storchaka | 2014-09-11 | 1 | -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 Stinner | 2014-09-10 | 1 | -1/+2 |
| | | |||||
* | | Issue #22369: Change "context manager protocol" to "context management ↵ | Serhiy Storchaka | 2014-09-10 | 1 | -2/+2 |
| | | | | | | | | protocol". | ||||
* | | Introduce and check for MPD_VERSION_HEX for precise management of builds | Stefan Krah | 2014-08-26 | 2 | -4/+8 |
| | | | | | | | | with an external libmpdec. | ||||
* | | Issue #22090: Fix '%' formatting for infinities and NaNs. | Stefan Krah | 2014-08-26 | 1 | -4/+7 |
| | | |||||
* | | Issue #15696: Add a __sizeof__ implementation for mmap objects on Windows. | Serhiy Storchaka | 2014-08-19 | 1 | -0/+16 |
| | |