summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22286: The "backslashreplace" error handlers now works withSerhiy Storchaka2015-01-2510-83/+196
| | | | decoding and translating.
* Merge: #23215: note that time.sleep affects the current thread only.R David Murray2015-01-251-6/+7
|\
| * #23215: reflow paragraph.R David Murray2015-01-251-6/+6
| |
| * #23251: Note that time.sleep affects the calling thread only.R David Murray2015-01-251-1/+2
| | | | | | | | This change parallels the language used in the unix man page.
* | merge from 3.4Senthil Kumaran2015-01-251-25/+42
|\ \ | |/ | | | | | | | | | | 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.
| * Increase http.client.HTTPConnection test coverage.Senthil Kumaran2015-01-251-25/+42
| | | | | | | | | | Added a new tunnel test to verify setting of _tunnel_host, _tunnel_port, _tunnel_headers attributes on HTTPConnection object.
* | Closes #23253: Delay-load ShellExecuteSteve Dower2015-01-243-4/+50
| |
* | Issue20284: Implement PEP461Ethan Furman2015-01-2410-158/+1185
| |
* | prefer server alpn ordering over the client'sBenjamin Peterson2015-01-233-16/+24
| |
* | add support for ALPN (closes #20188)Benjamin Peterson2015-01-235-29/+231
| |
* | Closes #23305: Merged documentation fix from 3.4.Vinay Sajip2015-01-231-9/+10
|\ \ | |/
| * Issue #23305: clarified RotatingFileHandler documentation.Vinay Sajip2015-01-231-9/+10
| |
* | Closes #23207: logging.basicConfig() now does additional validation of its ↵Vinay Sajip2015-01-231-8/+11
|\ \ | |/ | | | | arguments.
| * Issue #23207: logging.basicConfig() now does additional validation of its ↵Vinay Sajip2015-01-231-8/+11
| | | | | | | | arguments.
* | Closes #23202: pyvenv documentation updated to match its behavior.Vinay Sajip2015-01-231-2/+5
|\ \ | |/
| * Updated pyvenv documentation to match its current behaviour.Vinay Sajip2015-01-231-2/+5
| |
* | http.client: disable Nagle's algorithm (closes #23302)Benjamin Peterson2015-01-233-43/+11
| | | | | | | | Patch by Demian Brecht.
* | revert 7b833bd1f509. I misread the side effect that the code was triggering.Gregory P. Smith2015-01-231-2/+4
|\ \ | |/ | | | | | | *any* kwarg supplied to _assert_python causes it to not append -E to the command line flags so without='-E' does effectively work.
| * revert 7b833bd1f509. I misread the side effect that the code was triggering.Gregory P. Smith2015-01-231-2/+4
| | | | | | | | | | *any* kwarg supplied to _assert_python causes it to not append -E to the command line flags so without='-E' does effectively work.
* | Remove the unimplemented but ignored without='-E' parameters being passed toGregory P. Smith2015-01-231-4/+2
|\ \ | |/ | | | | | | | | 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)
| * Remove the unimplemented but ignored without='-E' parameters being passed toGregory P. Smith2015-01-231-4/+2
| | | | | | | | | | | | 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)
* | Only pass -E to the child interpreter if our interpreter was running in thatGregory P. Smith2015-01-231-7/+15
|\ \ | |/ | | | | | | | | | | | | | | 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).
| * Only pass -E to the child interpreter if our interpreter was running in thatGregory P. Smith2015-01-231-7/+15
| | | | | | | | | | | | | | | | | | | | 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).
* | Merge 3.4 (asyncio)Victor Stinner2015-01-222-26/+19
|\ \ | |/
| * asyncio, Tulip issue 204: Fix IocpProactor.accept_pipe()Victor Stinner2015-01-222-26/+19
| | | | | | | | | | | | | | | | 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.
* | Break up TestCommandLine.test_env_var into four distinct tests.Gregory P. Smith2015-01-221-3/+5
|\ \ | |/
| * Break up TestCommandLine.test_env_var into four distinct tests.Gregory P. Smith2015-01-221-3/+5
| |
* | Merge 3.4 (asyncio)Victor Stinner2015-01-222-113/+55
|\ \ | |/
| * Issue #23293, asyncio: Rewrite IocpProactor.connect_pipe()Victor Stinner2015-01-222-110/+48
| | | | | | | | | | | | | | | | 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.
| * asyncio: IocpProactor.close() doesn't cancel anymore futures which are alreadyVictor Stinner2015-01-221-3/+7
| | | | | | | | cancelled
* | Null merge 3.4Victor Stinner2015-01-220-0/+0
|\ \ | |/
| * Issue #23009: Add missing "import sys" in test_selectorsVictor Stinner2015-01-221-0/+1
| |
* | Merge 3.4Victor Stinner2015-01-221-0/+2
|\ \ | |/
| * Issue #23009: Skip test_selectors.test_empty_select() on WindowsVictor Stinner2015-01-221-0/+4
| |
* | Merge 3.4 (asyncio)Victor Stinner2015-01-212-1/+7
|\ \ | |/
| * Issue #23095, asyncio: IocpProactor.close() must not cancel pendingVictor Stinner2015-01-211-0/+6
| | | | | | | | _WaitCancelFuture futures
| * asyncio: BaseEventLoop._create_connection_transport() catchs any exception, notVictor Stinner2015-01-211-1/+1
| | | | | | | | only Exception
* | Merge 3.4 (asyncio)Victor Stinner2015-01-217-50/+173
|\ \ | |/
| * Issue #23095, asyncio: Rewrite _WaitHandleFuture.cancel()Victor Stinner2015-01-212-34/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * asyncio: pyflakes, remove unused importVictor Stinner2015-01-213-11/+2
| | | | | | | | tests: Remove unused function; inline another function
| * asyncio: Enhance BaseProactorEventLoop._loop_self_reading()Victor Stinner2015-01-212-5/+12
| | | | | | | | | | | | | | | | * 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.
* | Add the command line to the AssertionError raised by test.script_helper'sGregory P. Smith2015-01-212-2/+38
|\ \ | |/ | | | | | | | | | | 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. :)
| * Add the command line to the AssertionError raised by test.script_helper'sGregory P. Smith2015-01-212-2/+38
| | | | | | | | | | | | | | 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. :)
* | Merge with 3.4 (closes #23280)Zachary Ware2015-01-203-6/+103
|\ \ | |/
| * Issue #23280: Fix docstrings for binascii.(un)hexlifyZachary Ware2015-01-203-6/+103
| |
* | Issue #20898: Enum names are only available in the http.client module as ↵Berker Peksag2015-01-201-4/+3
| | | | | | | | | | | | constants. Noticed by Martin Panter.
* | Issue #22317: Document the action parameter in ↵Berker Peksag2015-01-201-3/+6
|\ \ | |/ | | | | | | | | ArgumentParser.add_subparsers() docs. Patch by Mike Short.
| * Issue #22317: Document the action parameter in ↵Berker Peksag2015-01-201-3/+6
| | | | | | | | | | | | ArgumentParser.add_subparsers() docs. Patch by Mike Short.
* | Issue #20898: Add a "HTTP status codes" section to avoid duplication in HTTP ↵Berker Peksag2015-01-203-322/+80
| | | | | | | | | | | | | | | | | | docs. This commit also removes a couple of non-standard status codes. They were added as part of edf669b13482, so there is no backwards compatibility issue. Patch by Demian Brecht.
* | A hybrid of and-masking and a conditional-set-to-zero produce even faster ↵Raymond Hettinger2015-01-191-1/+2
| | | | | | | | search loop.