summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | Update copyright for 2015 updates.Raymond Hettinger2015-01-191-1/+1
| |
* | Clean-up, simplify, and slightly speed-up bounds logic in set_pop().Raymond Hettinger2015-01-191-10/+3
| | | | | | | | | | | | | | Elsewhere in the setobject.c code we do a bitwise-and with the mask instead of using a conditional to reset to zero on wrap-around. Using that same technique here use gives cleaner, faster, and more consistent code.
* | Issue #23266: Restore the performance of ipaddress.collapse_addresses() whithSerhiy Storchaka2015-01-182-25/+25
| | | | | | | | duplicated addresses and simplify the code.
* | Issue 23261: Clean-up the hack to store the set.pop() search finger in a ↵Raymond Hettinger2015-01-183-25/+15
| | | | | | | | hash field instead of the setobject.
* | Fixed tests for issue #23133 (pickling of IPv4Network was not tested).Serhiy Storchaka2015-01-181-4/+4
| |
* | Issue #23133: Pickling of ipaddress objects now produces more compact andSerhiy Storchaka2015-01-183-14/+41
| | | | | | | | portable representation.
* | Issue #23248: Update ssl error codes from latest OpenSSL git master.Antoine Pitrou2015-01-183-20/+336
|\ \ | |/
| * Issue #23248: Update ssl error codes from latest OpenSSL git master.Antoine Pitrou2015-01-183-20/+336
| |
* | Issue #23266: Much faster implementation of ipaddress.collapse_addresses() ↵Antoine Pitrou2015-01-183-7/+15
| | | | | | | | when there are many non-consecutive addresses.