Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge 3.4 (asyncio) | Victor Stinner | 2015-01-29 | 5 | -44/+85 |
|\ | |||||
| * | asyncio: sync with Tulip | Victor Stinner | 2015-01-29 | 5 | -44/+85 |
| | | | | | | | | | | | | | | | | | | * Cleanup gather(): use cancelled() method instead of using private Future attribute * Fix _UnixReadPipeTransport and _UnixWritePipeTransport. Only start reading when connection_made() has been called. * Issue #23333: Fix BaseSelectorEventLoop._accept_connection(). Close the transport on error. In debug mode, log errors using call_exception_handler() | ||||
* | | Merge 3.4 (asyncio doc) | Victor Stinner | 2015-01-29 | 2 | -0/+13 |
|\ \ | |/ | |||||
| * | asyncio doc: document Protocol state machine | Victor Stinner | 2015-01-29 | 2 | -0/+13 |
| | | |||||
* | | Merge 3.4 (asyncio) | Victor Stinner | 2015-01-29 | 2 | -4/+24 |
|\ \ | |/ | |||||
| * | asyncio: sync with Tulip | Victor Stinner | 2015-01-29 | 2 | -4/+24 |
| | | | | | | | | | | | | | | | | | | | | * _SelectorTransport constructor: extra parameter is now optional * Fix _SelectorDatagramTransport constructor. Only start reading after connection_made() has been called. * Fix _SelectorSslTransport.close(). Don't call protocol.connection_lost() if protocol.connection_made() was not called yet: if the SSL handshake failed or is still in progress. The close() method can be called if the creation of the connection is cancelled, by a timeout for example. | ||||
* | | Merge 3.4 (asyncio) | Victor Stinner | 2015-01-29 | 1 | -0/+3 |
|\ \ | |/ | |||||
| * | asyncio: BaseSubprocessTransport._kill_wait() now also call close() | Victor Stinner | 2015-01-29 | 1 | -0/+3 |
| | | | | | | | | close() closes pipes, which is not None yet by _kill_wait(). | ||||
* | | Always #define _PyLong_FromDev as we always need it to compile rather than | Gregory P. Smith | 2015-01-28 | 1 | -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?) | ||||
| * | Always #define _PyLong_FromDev as we always need it to compile rather than | Gregory P. Smith | 2015-01-28 | 1 | -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?) | ||||
* | | Merge 3.4 (asyncio) | Victor Stinner | 2015-01-29 | 6 | -36/+77 |
|\ \ | |/ | |||||
| * | asyncio: Fix _SelectorSocketTransport constructor | Victor Stinner | 2015-01-29 | 2 | -6/+14 |
| | | | | | | | | | | Only start reading when connection_made() has been called: protocol.data_received() must not be called before protocol.connection_made(). | ||||
| * | asyncio: SSL transports now clear their reference to the waiter | Victor Stinner | 2015-01-29 | 4 | -21/+32 |
| | | | | | | | | | | | | | | * Rephrase also the comment explaining why the waiter is not awaken immediatly. * SSLProtocol.eof_received() doesn't instanciate ConnectionResetError exception directly, it will be done by Future.set_exception(). The exception is not used if the waiter was cancelled or if there is no waiter. | ||||
| * | asyncio: Fix SSLProtocol.eof_received() | Victor Stinner | 2015-01-29 | 2 | -11/+33 |
| | | | | | | | | Wake-up the waiter if it is not done yet. | ||||
* | | Merge 3.4 into default - Upgrade setuptools to 12.0.5 and pip to 6.0.7 | Donald Stufft | 2015-01-28 | 3 | -2/+2 |
|\ \ | |/ | |||||
| * | Update setuptools to 12.0.5 and pip to 6.0.7 | Donald Stufft | 2015-01-28 | 3 | -2/+2 |
| | | |||||
* | | ifdef our way to compatibility with old openssl (closes #23335) | Benjamin Peterson | 2015-01-28 | 1 | -1/+1 |
| | | |||||
* | | Fixed memory leak in marshal. | Serhiy Storchaka | 2015-01-28 | 1 | -1/+3 |
|\ \ | |/ | |||||
| * | Fixed memory leak in marshal. | Serhiy Storchaka | 2015-01-28 | 1 | -1/+3 |
| | | |||||
* | | Issue #22079: PyType_Ready() now checks that statically allocated type has | Serhiy Storchaka | 2015-01-28 | 2 | -0/+17 |
|\ \ | |/ | | | | | no dynamically allocated bases. | ||||
| * | Issue #22079: PyType_Ready() now checks that statically allocated type has | Serhiy Storchaka | 2015-01-28 | 2 | -0/+21 |
| | | | | | | | | no dynamically allocated bases. | ||||
* | | Merged documentation update from 3.4. | Vinay Sajip | 2015-01-28 | 1 | -0/+55 |
|\ \ | |/ | |||||
| * | Added a logging cookbook entry on customized exception formatting. | Vinay Sajip | 2015-01-28 | 1 | -0/+55 |
| | | |||||
* | | Merge 3.4 (asyncio) | Victor Stinner | 2015-01-28 | 3 | -2/+7 |
|\ \ | |/ | |||||
| * | asyncio: sync with Tulip | Victor Stinner | 2015-01-28 | 3 | -2/+7 |
| | | | | | | | | | | | | | | | | | | | | * Remove unused SSLProtocol._closing attribute * test_sslproto: skip test if ssl module is missing * Python issue #23208: Don't use the traceback of the current handle if we already know the traceback of the source. The handle may be more revelant, but having 3 tracebacks (handle, source, exception) becomes more difficult to read. The handle may be preferred later but it requires more work to make this choice. | ||||
* | | disable ALPN on LibreSSL, which has a large version number, but not ALPN ↵ | Benjamin Peterson | 2015-01-27 | 1 | -1/+1 |
| | | | | | | | | support (closes #23329) | ||||
* | | Revert unintended part of the commit (the key==dummy test wasn't supposed to ↵ | Raymond Hettinger | 2015-01-26 | 1 | -6/+2 |
| | | | | | | | | change). | ||||
* | | Remove unneeded dummy test from the set search loop (when the hashes match ↵ | Raymond Hettinger | 2015-01-26 | 2 | -5/+15 |
| | | | | | | | | we know the key is not a dummy). | ||||
* | | Issue #23269: Tighten search_loop in set_insert_clean() | Raymond Hettinger | 2015-01-26 | 1 | -6/+17 |
| | | | | | | | | | | Instead of masking and shifting every loopup, move the wrap-around test outside of the inner-loop. | ||||
* | | Add whatsnew entry for issue #5309. | Berker Peksag | 2015-01-27 | 1 | -0/+7 |
| | | |||||
* | | Issue #23286: Fix typo in the tutorial. | Berker Peksag | 2015-01-27 | 1 | -1/+1 |
|\ \ | |/ | | | | | Patch by Mayank Tripathi. | ||||
| * | Issue #23286: Fix typo in the tutorial. | Berker Peksag | 2015-01-27 | 1 | -1/+1 |
| | | | | | | | | Patch by Mayank Tripathi. | ||||
* | | Issue #22286, #23321: Fix failing test on Windows code page 932 | Victor Stinner | 2015-01-26 | 1 | -1/+1 |
| | | | | | | | | There was a bug which was fixed. The unit test was also wrong. | ||||
* | | Merge 3.4 (asyncio) | Victor Stinner | 2015-01-26 | 1 | -0/+3 |
|\ \ | |/ | |||||
| * | asyncio, _overlapped.ConnectPipe(): release the GIL | Victor Stinner | 2015-01-26 | 1 | -0/+3 |
| | | |||||
* | | Merge 3.4 (asyncio) | Victor Stinner | 2015-01-26 | 2 | -29/+32 |
|\ \ | |/ | |||||
| * | asyncio, Tulip issue 204: Fix IocpProactor.recv() | Victor Stinner | 2015-01-26 | 2 | -9/+15 |
| | | | | | | | | | | | | | | | | | | 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(). | ||||
| * | Issue #23095, asyncio: Fix _WaitHandleFuture.cancel() | Victor Stinner | 2015-01-26 | 1 | -20/+17 |
| | | | | | | | | | | If UnregisterWaitEx() fais with ERROR_IO_PENDING, it doesn't mean that the wait is unregistered yet. We still have to wait until the wait is cancelled. | ||||
* | | Issue #20284: Fix a compilation warning on Windows | Victor Stinner | 2015-01-26 | 1 | -1/+1 |
| | | | | | | | | Explicitly cast the long to char. | ||||
* | | Issue #15859: PyUnicode_EncodeFSDefault(), PyUnicode_EncodeMBCS() and | Victor Stinner | 2015-01-26 | 3 | -4/+11 |
| | | | | | | | | | | | | PyUnicode_EncodeCodePage() now raise an exception if the object is not an Unicode object. For PyUnicode_EncodeFSDefault(), it was already the case on platforms other than Windows. Patch written by Campbell Barton. | ||||
* | | ensure ilen is initialized when it is assigned to len | Benjamin Peterson | 2015-01-26 | 1 | -1/+1 |
| | | |||||
* | | Merge 3.4 (asyncio) | Victor Stinner | 2015-01-26 | 3 | -22/+46 |
|\ \ | |/ | |||||
| * | Issue #23293, asyncio: Rewrite IocpProactor.connect_pipe() as a coroutine | Victor Stinner | 2015-01-26 | 2 | -21/+31 |
| | | | | | | | | | | | | | | Use a coroutine with asyncio.sleep() instead of call_later() to ensure that the schedule call is cancelled. Add also a unit test cancelling connect_pipe(). | ||||
| * | asyncio: PipeHandle.fileno() now raises an exception if the pipe is closed | Victor Stinner | 2015-01-26 | 1 | -0/+2 |
| | | |||||
| * | asyncio: Fix ProactorEventLoop.start_serving_pipe() | Victor Stinner | 2015-01-26 | 1 | -1/+13 |
| | | | | | | | | | | If a client connected before the server was closed: drop the client (close the pipe) and exit. | ||||
* | | Issue #14099: Restored support of writing ZIP files to tellable but | Serhiy Storchaka | 2015-01-26 | 3 | -3/+44 |
| | | | | | | | | non-seekable streams. | ||||
* | | Issue #14099: Writing to ZipFile and reading multiple ZipExtFiles is | Serhiy Storchaka | 2015-01-26 | 2 | -198/+212 |
| | | | | | | | | threadsafe now. | ||||
* | | Null merge | Serhiy Storchaka | 2015-01-26 | 0 | -0/+0 |
|\ \ | |/ | |||||
| * | Issue #14099: Backout changeset e5bb3044402b (except adapted tests). | Serhiy Storchaka | 2015-01-26 | 4 | -132/+102 |
| | | |||||
* | | Issue #19361: JSON decoder now raises JSONDecodeError instead of ValueError. | Serhiy Storchaka | 2015-01-26 | 10 | -85/+146 |
| | |