summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Issue #21802: The reader in BufferedRWPair now is closed even when closingSerhiy Storchaka2015-03-241-4/+10
| | | | writer failed in BufferedRWPair.close().
* Issue #23654: Fix faulthandler._stack_overflow() for the Intel C Compiler (ICC)Victor Stinner2015-03-231-1/+8
| | | | | | | Issue #23654: Turn off ICC's tail call optimization for the stack_overflow generator. ICC turns the recursive tail call into a loop. Patch written by Matt Frank.
* _tracemalloc.c: Fix typoVictor Stinner2015-03-181-1/+1
|
* Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka2015-03-122-2/+2
| | | | Fixed 2 to 3 porting bug in pynche.ColorDB.
* expose X509_V_FLAG_TRUSTED_FIRSTBenjamin Peterson2015-03-051-0/+4
|
* enable X509_V_FLAG_TRUSTED_FIRST when possible (closes #23476)Benjamin Peterson2015-03-051-0/+9
|
* Issue #23576: Avoid stalling in SSL reads when EOF has been reached in the ↵Antoine Pitrou2015-03-041-20/+0
| | | | SSL layer but the underlying connection hasn't been closed.
* merge 3.3 (#23367)Benjamin Peterson2015-03-021-3/+10
|\
| * fix possible overflow bugs in unicodedata (closes #23367)Benjamin Peterson2015-03-021-3/+10
| |
* | Issue #20204: Added the __module__ attribute to _tkinter classes.Serhiy Storchaka2015-03-011-2/+2
| |
* | Issue #23215: Multibyte codecs with custom error handlers that ignores errorsSerhiy Storchaka2015-02-201-8/+11
| | | | | | | | | | consumed too much memory and raised SystemError or MemoryError. Original patch by Aleksi Torhamo.
* | Issue #5700: io.FileIO() called flush() after closing the file.Serhiy Storchaka2015-02-201-7/+14
| | | | | | | | flush() was not called in close() if closefd=False.
* | Shoould be Py_MIN, not Py_MAX.Serhiy Storchaka2015-02-161-1/+1
| |
* | Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka2015-02-1612-30/+40
| | | | | | | | overflows. Added few missed PyErr_NoMemory().
* | Issue #13637: Improve exception message of a2b_* functions.Berker Peksag2015-02-141-2/+2
| | | | | | | | Patch by Vajrasky Kok.
* | Issue #23433: Fix faulthandler._stack_overflow()Victor Stinner2015-02-111-4/+5
| | | | | | | | | | Fix undefined behaviour: don't compare pointers. Use Py_uintptr_t type instead of void*. It fixes test_faulthandler on Fedora 22 which now uses GCC 5.
* | merge 3.3 (#23361)Benjamin Peterson2015-02-101-2/+12
|\ \ | |/
| * add overflow checking (closes #23361)Benjamin Peterson2015-02-101-2/+12
| |
* | Issue #23392: Added tests for marshal C API that works with FILE*.Serhiy Storchaka2015-02-061-0/+166
| |
* | Issue #23099: Closing io.BytesIO with exported buffer is rejected now toSerhiy Storchaka2015-02-031-0/+1
| | | | | | | | prevent corrupting exported buffer.
* | Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests.Serhiy Storchaka2015-02-021-20/+6
|\ \ | |/ | | | | Used PyMem_New to check overflow.
| * Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests.Serhiy Storchaka2015-02-021-20/+6
| | | | | | | | Used PyMem_New to check overflow.
* | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka2015-02-026-59/+79
| | | | | | | | and PyObject_AsWriteBuffer().
* | merge 3.3 (#23364, #23363)Benjamin Peterson2015-02-021-2/+16
|\ \ | |/
| * check for overflows in permutations() and product() (closes #23363, closes ↵Benjamin Peterson2015-02-021-2/+16
| | | | | | | | #23364)
* | merge 3.3 (#23365)Benjamin Peterson2015-02-021-0/+4
|\ \ | |/
| * check for overflow in combinations_with_replacement (closes #23365)Benjamin Peterson2015-02-021-0/+4
| |
* | merge 3.3 (#23366)Benjamin Peterson2015-02-021-0/+4
|\ \ | |/
| * detect overflow in combinations (closes #23366)Benjamin Peterson2015-02-021-0/+4
| |
* | merge 3.3 (#23369)Benjamin Peterson2015-02-011-4/+11
|\ \ | |/
| * fix possible overflow in encode_basestring_ascii (closes #23369)Benjamin Peterson2015-02-011-4/+11
| |
* | Issue #23370: Fix off-by-one error for non-contiguous buffers.Stefan Krah2015-02-011-0/+51
| |
* | Always #define _PyLong_FromDev as we always need it to compile rather thanGregory P. Smith2015-01-291-8/+8
| | | | | | | | | | | | | | only defining it when HAVE_MKNOD && HAVE_MAKEDEV are true. This "oops" issue reported by John E. Malmberg on core-mentorship. (what kinds of systems don't HAVE_MKNOD && HAVE_MAKEDEV?)
* | 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
| |