Staging
v0.5.1
https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
7213fcc Issue #23370: Fix off-by-one error for non-contiguous buffers. 01 February 2015, 15:19:23 UTC
f046dfe Added a cookbook entry on logging audible messages. 01 February 2015, 15:17:34 UTC
6b89973 Issue #23212: Update Windows copy of OpenSSL to 1.0.1l 31 January 2015, 20:19:10 UTC
26f7b8a Issue #23353: Fix the exception handling of generators in PyEval_EvalFrameEx(). At entry, save or swap the exception state even if PyEval_EvalFrameEx() is called with throwflag=0. At exit, the exception state is now always restored or swapped, not only if why is WHY_YIELD or WHY_RETURN. Patch co-written with Antoine Pitrou. 31 January 2015, 09:29:47 UTC
fdc9953 Issue #22765: Fixed test_gdb failures. Supressed unexpected gdb output. Patch by Bohuslav Kabrda. 31 January 2015, 09:48:52 UTC
756f0b1 Fix asyncio doc typo. 30 January 2015, 00:53:33 UTC
188f2c0 asyncio doc: document the new ResourceWarning warnings 30 January 2015, 00:35:14 UTC
f2e43cb Issue #23347, asyncio: send_signal(), terminate(), kill() don't check if the transport was closed. The check broken a Tulip example and this limitation is arbitrary. Check if _proc is None should be enough. Enhance also close(): do nothing when called the second time. 30 January 2015, 00:20:44 UTC
1077dee asyncio doc: add a section about task cancellation 29 January 2015, 23:55:58 UTC
7a55b88 Issue #21962, asyncio doc: Suggest the usage of wait_for() to replace the lack of timeout parameter for locks and queues. 29 January 2015, 23:37:04 UTC
1241ecc Issue #23347, asyncio: Make BaseSubprocessTransport.wait() private 29 January 2015, 23:16:14 UTC
0698638 asyncio: Fix ResourceWarning in test_subprocess.test_proc_exit() 29 January 2015, 23:11:42 UTC
47cd10d asyncio: sync with Tulip Issue #23347: send_signal(), kill() and terminate() methods of BaseSubprocessTransport now check if the transport was closed and if the process exited. Issue #23347: Refactor creation of subprocess transports. Changes on BaseSubprocessTransport: * Add a wait() method to wait until the child process exit * The constructor now accepts an optional waiter parameter. The _post_init() coroutine must not be called explicitly anymore. It makes subprocess transports closer to other transports, and it gives more freedom if we want later to change completly how subprocess transports are created. * close() now kills the process instead of kindly terminate it: the child process may ignore SIGTERM and continue to run. Call explicitly terminate() and wait() if you want to kindly terminate the child process. * close() now logs a warning in debug mode if the process is still running and needs to be killed * _make_subprocess_transport() is now fully asynchronous again: if the creation of the transport failed, wait asynchronously for the process eixt. Before the wait was synchronous. This change requires close() to *kill*, and not terminate, the child process. * Remove the _kill_wait() method, replaced with a more agressive close() method. It fixes _make_subprocess_transport() on error. BaseSubprocessTransport.close() calls the close() method of pipe transports, whereas _kill_wait() closed directly pipes of the subprocess.Popen object without unregistering file descriptors from the selector (which caused severe bugs). These changes simplifies the code of subprocess.py. 29 January 2015, 23:05:19 UTC
978a9af Issue #23243, asyncio: Emit a ResourceWarning when an event loop or a transport is not explicitly closed. Close also explicitly transports in test_sslproto. 29 January 2015, 16:50:58 UTC
3c0cf05 Issue #22668: Remove endianness assumption in test. 29 January 2015, 16:33:31 UTC
fa5d6a5 Issue #22668: Ensure that format strings survive slicing after casting. 29 January 2015, 13:27:23 UTC
2934262 asyncio: sync with Tulip * 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() 29 January 2015, 13:15:19 UTC
54a231d asyncio doc: document Protocol state machine 29 January 2015, 12:33:15 UTC
47bbea7 asyncio: sync with Tulip * _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. 29 January 2015, 01:56:05 UTC
7b5a900 asyncio: BaseSubprocessTransport._kill_wait() now also call close() close() closes pipes, which is not None yet by _kill_wait(). 29 January 2015, 01:14:30 UTC
702dada Always #define _PyLong_FromDev as we always need it to compile rather than 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?) 29 January 2015, 00:07:52 UTC
fa73779 asyncio: Fix _SelectorSocketTransport constructor Only start reading when connection_made() has been called: protocol.data_received() must not be called before protocol.connection_made(). 28 January 2015, 23:36:51 UTC
f07801b asyncio: SSL transports now clear their reference to the waiter * 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. 28 January 2015, 23:36:35 UTC
b507cba asyncio: Fix SSLProtocol.eof_received() Wake-up the waiter if it is not done yet. 28 January 2015, 23:35:56 UTC
a89f5f0 Update setuptools to 12.0.5 and pip to 6.0.7 28 January 2015, 22:56:15 UTC
000daae Fixed memory leak in marshal. 28 January 2015, 15:10:48 UTC
e09bcc8 Issue #22079: PyType_Ready() now checks that statically allocated type has no dynamically allocated bases. 28 January 2015, 09:03:33 UTC
db07164 Added a logging cookbook entry on customized exception formatting. 28 January 2015, 07:32:38 UTC
ff018e4 asyncio: sync with Tulip * 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. 27 January 2015, 23:30:40 UTC
b68c420 Issue #23286: Fix typo in the tutorial. Patch by Mayank Tripathi. 27 January 2015, 00:52:14 UTC
498b1f6 asyncio, _overlapped.ConnectPipe(): release the GIL 26 January 2015, 21:43:39 UTC
41063d2 asyncio, Tulip issue 204: Fix IocpProactor.recv() 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(). 26 January 2015, 21:30:49 UTC
24dfa3c Issue #23095, asyncio: Fix _WaitHandleFuture.cancel() 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. 26 January 2015, 21:30:28 UTC
e0fd157 Issue #23293, asyncio: Rewrite IocpProactor.connect_pipe() as a coroutine 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(). 26 January 2015, 14:04:03 UTC
2a3f38f asyncio: PipeHandle.fileno() now raises an exception if the pipe is closed 26 January 2015, 14:03:44 UTC
a19b7b3 asyncio: Fix ProactorEventLoop.start_serving_pipe() If a client connected before the server was closed: drop the client (close the pipe) and exit. 26 January 2015, 14:03:20 UTC
b76bcc4 Issue #14099: Backout changeset e5bb3044402b (except adapted tests). 26 January 2015, 11:45:39 UTC
b6c0c5b Merge heads 26 January 2015, 10:12:31 UTC
2bef585 Issue #18518: timeit now rejects statements which can't be compiled outside a function or a loop (e.g. "return" or "break"). 26 January 2015, 10:09:17 UTC
9b524d5 Issue #23208, asyncio: Add BaseEventLoop._current_handle In debug mode, BaseEventLoop._run_once() now sets the BaseEventLoop._current_handle attribute to the handle currently executed. In release mode or when no handle is executed, the attribute is None. BaseEventLoop.default_exception_handler() displays the traceback of the current handle if available. 26 January 2015, 10:05:12 UTC
3d2256f Issue #23293, asyncio: Cleanup IocpProactor.close() The special case for connect_pipe() is not more needed. connect_pipe() doesn't use overlapped operations anymore. 26 January 2015, 10:02:59 UTC
2596dd0 asyncio: Close transports on error Fix create_datagram_endpoint(), connect_read_pipe() and connect_write_pipe(): close the transport if the task is cancelled or on error. 26 January 2015, 10:02:18 UTC
21d7533 Issue #23094: Fixed readline with frames in Python implementation of pickle. 26 January 2015, 08:37:01 UTC
5106d04 Issue #7665: Fixed tests test_ntpath and test_urllib2 when ran in the directory containing a backslash. 26 January 2015, 08:26:14 UTC
624caf7 Add credits for Martin Panter. 26 January 2015, 08:14:29 UTC
f186e12 Issue #23268: Fixed bugs in the comparison of ipaddress classes. 26 January 2015, 08:11:16 UTC
f4b7a02 Issue #21408: The default __ne__() now returns NotImplemented if __eq__() returned NotImplemented. Removed incorrect implementations of __ne__(). 26 January 2015, 07:57:07 UTC
155ceaa handle headers with no key (closes #19996) Patch by Cory Benfield. 26 January 2015, 04:30:30 UTC
7e4b905 Issue #23321: Fixed a crash in str.decode() when error handler returned replacment string longer than mailformed input data. 25 January 2015, 23:22:54 UTC
1923b62 #23215: reflow paragraph. 25 January 2015, 20:46:22 UTC
f1f9675 #23251: Note that time.sleep affects the calling thread only. This change parallels the language used in the unix man page. 25 January 2015, 20:45:14 UTC
e6cc701 Increase http.client.HTTPConnection test coverage. Added a new tunnel test to verify setting of _tunnel_host, _tunnel_port, _tunnel_headers attributes on HTTPConnection object. 25 January 2015, 03:24:59 UTC
ff37cfe Issue #23305: clarified RotatingFileHandler documentation. 23 January 2015, 21:19:04 UTC
5abca70 Issue #23207: logging.basicConfig() now does additional validation of its arguments. 23 January 2015, 19:52:21 UTC
71e7296 Updated pyvenv documentation to match its current behaviour. 23 January 2015, 19:35:12 UTC
48e8100 revert 7b833bd1f509. I misread the side effect that the code was triggering. *any* kwarg supplied to _assert_python causes it to not append -E to the command line flags so without='-E' does effectively work. 23 January 2015, 06:55:00 UTC
5666461 Remove the unimplemented but ignored without='-E' parameters being passed to script_helper.assert_python_failure(). No such feature has ever existed, thus it doesn't do what the comment claims. (It does add a 'without' variable to the environment of the child process but that was not intended) 23 January 2015, 06:04:16 UTC
fe7c5d6 Only pass -E to the child interpreter if our interpreter was running in that mode. Explicitly remove the PYTHONFAULTHANDLER environment variable before launching a child interpreter when its presence would impact the test (the reason -E was being used in the first place). This enables running the test in an environment where other Python environment variables must be set in order for things to run (such as using PYTHONHOME to tell an embedded interpreter where it should think it lives). 23 January 2015, 01:33:28 UTC
2b77c54 asyncio, Tulip issue 204: Fix IocpProactor.accept_pipe() 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. 22 January 2015, 22:50:03 UTC
34cd2ae Break up TestCommandLine.test_env_var into four distinct tests. 22 January 2015, 22:38:00 UTC
7ffa2c5 Issue #23293, asyncio: Rewrite IocpProactor.connect_pipe() 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. 22 January 2015, 21:55:08 UTC
752aba7 asyncio: IocpProactor.close() doesn't cancel anymore futures which are already cancelled 22 January 2015, 21:47:13 UTC
f6228f0 Issue #23009: Add missing "import sys" in test_selectors 22 January 2015, 08:35:23 UTC
14d45c0 Issue #23009: Skip test_selectors.test_empty_select() on Windows 22 January 2015, 08:07:36 UTC
1ca9392 Issue #23095, asyncio: IocpProactor.close() must not cancel pending _WaitCancelFuture futures 21 January 2015, 23:17:54 UTC
0c2e408 asyncio: BaseEventLoop._create_connection_transport() catchs any exception, not only Exception 21 January 2015, 23:17:41 UTC
d0a28de Issue #23095, asyncio: Rewrite _WaitHandleFuture.cancel() 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. 21 January 2015, 22:39:51 UTC
442b0ad asyncio: pyflakes, remove unused import tests: Remove unused function; inline another function 21 January 2015, 22:39:16 UTC
cd0f7f9 asyncio: Enhance BaseProactorEventLoop._loop_self_reading() * Handle correctly CancelledError: just exit * On error, log the exception and exit Don't try to close the event loop, it is probably running and so it cannot be closed. 21 January 2015, 22:38:37 UTC
b5684c4 Add the command line to the AssertionError raised by test.script_helper's Python subprocess failure assertion error messages for easier debugging. Adds a unittest for test.script_helper to confirm that this code works as it is otherwise uncovered by an already passing test suite that uses it. :) 21 January 2015, 01:19:47 UTC
b176d40 Issue #23280: Fix docstrings for binascii.(un)hexlify 20 January 2015, 19:59:46 UTC
5a494f6 Issue #22317: Document the action parameter in ArgumentParser.add_subparsers() docs. Patch by Mike Short. 20 January 2015, 04:45:53 UTC
173ad83 Issue #23248: Update ssl error codes from latest OpenSSL git master. 18 January 2015, 16:39:32 UTC
d3faf43 Issue #23181: More "codepoint" -> "code point". 18 January 2015, 09:28:37 UTC
b2653b3 Issue #23098: 64-bit dev_t is now supported in the os module. 18 January 2015, 09:12:11 UTC
ccb416f Issue #23180: Rename IDLE "Windows" menu item to "Window". Patch by Al Sweigart. 18 January 2015, 05:06:27 UTC
3bbb37e Issue #23211: Fix patch for 3.4 differences. 18 January 2015, 01:31:13 UTC
1e012e6 Issue #23211: Workaround test_logging failure on some OS X 10.6 systems: getaddrinfo("localhost") can fail depending on the name server configuration, use "127.0.0.0" instead. 18 January 2015, 00:57:19 UTC
465b057 Closes #23256: Avoid a crash in test_ctypes Only happened with oddly capitalized debug executables on Windows. Patch by Claudiu Popa. 17 January 2015, 14:50:42 UTC
bd34162 capitialize "HttpOnly" and "Secure" as they appear in the standard and other impls (closes #23250) Patch by Jon Dufresne. 17 January 2015, 01:43:55 UTC
f716d8b Issue #22685: Fix test_pause_reading() of asyncio/test_subprocess Override the connect_read_pipe() method of the loop to mock immediatly pause_reading() and resume_reading() methods. The test failed randomly on FreeBSD 9 buildbot and on Windows using trollius. 15 January 2015, 21:52:59 UTC
406204c Backout changeset 6ab2575bc12b StreamWriter: close() now clears the reference to the transport StreamWriter now raises an exception if it is closed: write(), writelines(), write_eof(), can_write_eof(), get_extra_info(), drain(). 15 January 2015, 20:50:19 UTC
cbd3bd5 Closes #23160: Respect the environment variable SVNROOT in external-common.bat (patch by anselm.kruis) 15 January 2015, 17:16:38 UTC
922bc2c Closes #23219: cancelling asyncio.wait_for() now cancels the task 15 January 2015, 15:29:10 UTC
ab8848b asyncio: Close transports in tests * Use test_utils.run_briefly() to execute pending calls to really close transports * sslproto: mock also _SSLPipe.shutdown(), it's need to close the transport * pipe test: the test doesn't close explicitly the PipeHandle, so ignore the warning instead * test_popen: use the context manager ("with p:") to explicitly close pipes 15 January 2015, 13:24:55 UTC
4bf22e0 asyncio: Close the transport on subprocess creation failure 15 January 2015, 13:24:22 UTC
fcd58de asyncio: Fix _ProactorBasePipeTransport.close() Set the _read_fut attribute to None after cancelling it. This change should fix a race condition with _ProactorWritePipeTransport._pipe_closed(). 15 January 2015, 12:40:27 UTC
79c93ba asyncio: Fix _ProactorBasePipeTransport.__repr__() Check if the _sock attribute is None to check if the transport is closed. 15 January 2015, 12:32:28 UTC
02392c9 Issue #23243: Close explicitly transports in asyncio tests 15 January 2015, 12:18:32 UTC
33cb039 Issue #23243: Close explicitly event loops in asyncio tests 15 January 2015, 12:17:34 UTC
41ed958 Issue #23243: Fix asyncio._UnixWritePipeTransport.close() Do nothing if the transport is already closed. Before it was not possible to close the transport twice. 15 January 2015, 12:16:50 UTC
7e222f4 SSLProtocol: set the _transport attribute in the constructor 15 January 2015, 12:16:27 UTC
791009b Issue #23242: asyncio.SubprocessStreamProtocol now closes the subprocess transport at subprocess exit. Clear also its reference to the transport. 15 January 2015, 12:16:02 UTC
72bdefb Issue #22560: Fix typo: call -> call_soon 15 January 2015, 08:44:13 UTC
042dad7 Issue #22560: Fix SSLProtocol._on_handshake_complete() Don't call immediatly self._process_write_backlog() but schedule the call using call_soon(). _on_handshake_complete() can be called indirectly from _process_write_backlog(), and _process_write_backlog() is not reentrant. 15 January 2015, 08:41:48 UTC
e7a3571 StreamWriter: close() now clears the reference to the transport StreamWriter now raises an exception if it is closed: write(), writelines(), write_eof(), can_write_eof(), get_extra_info(), drain(). 15 January 2015, 08:33:50 UTC
caa12da Closes #23244: fix typo. Thanks Mayank Tripathi for the patch. 15 January 2015, 07:16:01 UTC
8a12329 Issue22997: minor doc update; thanks to Simoen Visser 15 January 2015, 06:31:50 UTC
2f825af Issue22988: clarify yield and exception blocks 15 January 2015, 06:25:27 UTC
845d33c Issue20467: clarify __init__'s role 15 January 2015, 05:56:49 UTC
back to top