summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge 3.4 (asyncio)Victor Stinner2015-01-295-44/+85
|\
| * asyncio: sync with TulipVictor Stinner2015-01-295-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 Stinner2015-01-292-0/+13
|\ \ | |/
| * asyncio doc: document Protocol state machineVictor Stinner2015-01-292-0/+13
| |
* | Merge 3.4 (asyncio)Victor Stinner2015-01-292-4/+24
|\ \ | |/
| * asyncio: sync with TulipVictor Stinner2015-01-292-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 Stinner2015-01-291-0/+3
|\ \ | |/
| * asyncio: BaseSubprocessTransport._kill_wait() now also call close()Victor Stinner2015-01-291-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 thanGregory P. Smith2015-01-281-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 thanGregory P. Smith2015-01-281-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 Stinner2015-01-296-36/+77
|\ \ | |/
| * asyncio: Fix _SelectorSocketTransport constructorVictor Stinner2015-01-292-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 waiterVictor Stinner2015-01-294-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 Stinner2015-01-292-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.7Donald Stufft2015-01-283-2/+2
|\ \ | |/
| * Update setuptools to 12.0.5 and pip to 6.0.7Donald Stufft2015-01-283-2/+2
| |
* | ifdef our way to compatibility with old openssl (closes #23335)Benjamin Peterson2015-01-281-1/+1
| |
* | Fixed memory leak in marshal.Serhiy Storchaka2015-01-281-1/+3
|\ \ | |/
| * Fixed memory leak in marshal.Serhiy Storchaka2015-01-281-1/+3
| |
* | Issue #22079: PyType_Ready() now checks that statically allocated type hasSerhiy Storchaka2015-01-282-0/+17
|\ \ | |/ | | | | no dynamically allocated bases.
| * Issue #22079: PyType_Ready() now checks that statically allocated type hasSerhiy Storchaka2015-01-282-0/+21
| | | | | | | | no dynamically allocated bases.
* | Merged documentation update from 3.4.Vinay Sajip2015-01-281-0/+55
|\ \ | |/
| * Added a logging cookbook entry on customized exception formatting.Vinay Sajip2015-01-281-0/+55
| |
* | Merge 3.4 (asyncio)Victor Stinner2015-01-283-2/+7
|\ \ | |/
| * asyncio: sync with TulipVictor Stinner2015-01-283-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 Peterson2015-01-271-1/+1
| | | | | | | | support (closes #23329)
* | Revert unintended part of the commit (the key==dummy test wasn't supposed to ↵Raymond Hettinger2015-01-261-6/+2
| | | | | | | | change).
* | Remove unneeded dummy test from the set search loop (when the hashes match ↵Raymond Hettinger2015-01-262-5/+15
| | | | | | | | we know the key is not a dummy).
* | Issue #23269: Tighten search_loop in set_insert_clean()Raymond Hettinger2015-01-261-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 Peksag2015-01-271-0/+7
| |
* | Issue #23286: Fix typo in the tutorial.Berker Peksag2015-01-271-1/+1
|\ \ | |/ | | | | Patch by Mayank Tripathi.
| * Issue #23286: Fix typo in the tutorial.Berker Peksag2015-01-271-1/+1
| | | | | | | | Patch by Mayank Tripathi.
* | Issue #22286, #23321: Fix failing test on Windows code page 932Victor Stinner2015-01-261-1/+1
| | | | | | | | There was a bug which was fixed. The unit test was also wrong.
* | Merge 3.4 (asyncio)Victor Stinner2015-01-261-0/+3
|\ \ | |/
| * asyncio, _overlapped.ConnectPipe(): release the GILVictor Stinner2015-01-261-0/+3
| |
* | Merge 3.4 (asyncio)Victor Stinner2015-01-262-29/+32
|\ \ | |/
| * asyncio, Tulip issue 204: Fix IocpProactor.recv()Victor Stinner2015-01-262-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 Stinner2015-01-261-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 WindowsVictor Stinner2015-01-261-1/+1
| | | | | | | | Explicitly cast the long to char.
* | Issue #15859: PyUnicode_EncodeFSDefault(), PyUnicode_EncodeMBCS() andVictor Stinner2015-01-263-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 lenBenjamin Peterson2015-01-261-1/+1
| |
* | Merge 3.4 (asyncio)Victor Stinner2015-01-263-22/+46
|\ \ | |/
| * Issue #23293, asyncio: Rewrite IocpProactor.connect_pipe() as a coroutineVictor Stinner2015-01-262-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 closedVictor Stinner2015-01-261-0/+2
| |
| * asyncio: Fix ProactorEventLoop.start_serving_pipe()Victor Stinner2015-01-261-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 butSerhiy Storchaka2015-01-263-3/+44
| | | | | | | | non-seekable streams.
* | Issue #14099: Writing to ZipFile and reading multiple ZipExtFiles isSerhiy Storchaka2015-01-262-198/+212
| | | | | | | | threadsafe now.
* | Null mergeSerhiy Storchaka2015-01-260-0/+0
|\ \ | |/
| * Issue #14099: Backout changeset e5bb3044402b (except adapted tests).Serhiy Storchaka2015-01-264-132/+102
| |
* | Issue #19361: JSON decoder now raises JSONDecodeError instead of ValueError.Serhiy Storchaka2015-01-2610-85/+146
| |