summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Issue #21868: Prevent turtle crash due to invalid undo buffer size.Raymond Hettinger2014-07-212-1/+3
|
* add #Benjamin Peterson2014-07-201-1/+1
|
* args doesn't need to be a tuple (closes #17210)Benjamin Peterson2014-07-191-1/+1
|
* Issue #22006: Remove outdated _thread caveat. Thanks Dan O'Reilly for the ↵Mark Dickinson2014-07-191-4/+0
| | | | report.
* Issue #22004: Correct an argument name.Zachary Ware2014-07-181-1/+1
|
* Fix asyncio.__all__: export also unix_events and windows_events symbolsVictor Stinner2014-07-181-6/+7
| | | | | For example, on Windows, it was not possible to get ProactorEventLoop or DefaultEventLoopPolicy using "from asyncio import *".
* Issue #21247: Fix a race condition in test_send_signal() of asyncioVictor Stinner2014-07-171-4/+15
| | | | | Add a basic synchronization mechanism to wait until the child process is ready before sending it a signal.
* Python issue #21645, Tulip issue 192: Rewrite signal handlingVictor Stinner2014-07-175-7/+27
| | | | | | | | | | | | | | | | | | | Since Python 3.3, the C signal handler writes the signal number into the wakeup file descriptor and then schedules the Python call using Py_AddPendingCall(). asyncio uses the wakeup file descriptor to wake up the event loop, and relies on Py_AddPendingCall() to schedule the final callback with call_soon(). If the C signal handler is called in a thread different than the thread of the event loop, the loop is awaken but Py_AddPendingCall() was not called yet. In this case, the event loop has nothing to do and go to sleep again. Py_AddPendingCall() is called while the event loop is sleeping again and so the final callback is not scheduled immediatly. This patch changes how asyncio handles signals. Instead of relying on Py_AddPendingCall() and the wakeup file descriptor, asyncio now only relies on the wakeup file descriptor. asyncio reads signal numbers from the wakeup file descriptor to call its signal handler.
* asyncio: Fix test_stdin_broken_pipe(), drain() can also raiseVictor Stinner2014-07-171-2/+2
| | | | ConnectionResetError
* asyncio, tulip issue 190: Process.communicate() now ignoresVictor Stinner2014-07-172-9/+12
| | | | ConnectionResetError too
* asyncio, tulip issue 190: Process.communicate() must ignore BrokenPipeErrorVictor Stinner2014-07-173-8/+32
| | | | | | | | If you want to handle the BrokenPipeError, you can easily reimplement communicate(). Add also a unit test to ensure that stdin.write() + stdin.drain() raises BrokenPipeError.
* Issue #21994: Fix SyntaxError in the SSLContext.check_hostname documentation.Berker Peksag2014-07-171-2/+2
|
* Issue 21044: tarfile.open() now handles fileobj with an integer 'name'Serhiy Storchaka2014-07-164-7/+36
| | | | attribute. Based on patch by Martin Panter.
* Fix a minor typo in the turtle docs. Found by Brandon Passmore on docs@.Zachary Ware2014-07-161-1/+1
|
* Issue #21918: Convert test_tools.py to a sub-package of test.Zachary Ware2014-07-1610-195/+283
|
* Remove Tools/scripts/pydocgui.pyw.Zachary Ware2014-07-161-7/+0
| | | | | pydoc.gui was removed over 3 years ago (#10818), this script has been utterly bereft of worth since then.
* asyncio: test_as_completed(): disable "slow callback" warningVictor Stinner2014-07-161-0/+2
|
* Issue #21163: Fix "destroy pending task" warning in test_wait_errors()Victor Stinner2014-07-162-6/+9
|
* Issue #21163, asyncio: Ignore "destroy pending task" warnings for private tasksVictor Stinner2014-07-161-11/+23
| | | | in gather().
* asyncio: test_selector_events: remove duplicate call to _on_handshake() methodVictor Stinner2014-07-161-3/+3
| | | | The _SelectorSslTransport constructor already calls it.
* Issue #21765: Add support for non-ascii identifiers to HyperParserTal Einat2014-07-164-44/+213
|
* Issue #21982: Add minimal unittest for configDialog with 46% coverage.Terry Jan Reedy2014-07-152-4/+42
| | | | Fix regression that this test would have caught.
* asyncio tests: make quiet the logs of SSL handshake failures when running testsVictor Stinner2014-07-143-17/+37
| | | | in debug mode
* asyncio: sync with TulipVictor Stinner2014-07-146-43/+181
| | | | | | | | | | | | | | | | | | | | * Tulip issue #184: Log subprocess events in debug mode - Log stdin, stdout and stderr transports and protocols - Log process identifier (pid) - Log connection of pipes - Log process exit - Log Process.communicate() tasks: feed stdin, read stdout and stderr - Add __repr__() method to many classes related to subprocesses * Add BaseSubprocessTransport._pid attribute. Store the pid so it is still accessible after the process exited. It's more convinient for debug. * create_connection(): add the socket in the "connected to" debug log * Clean up some docstrings and comments. Remove unused unimplemented _read_from_self().
* Call PyErr_NoMemory() when PyMem_Malloc() fails.Serhiy Storchaka2014-07-141-1/+3
|
* Issue 21977: Minor improvements to the regexes in the tokenizer example.Raymond Hettinger2014-07-141-2/+2
|
* Issue #18592: Method return signature changes made to SearchDialogBase forTerry Jan Reedy2014-07-134-19/+35
| | | | | test purposes are now reflected in GrepDialog and ReplaceDialog. Docstrings are improved. Initial patch by Saimadhav Heblikar
* Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,Ned Deily2014-07-134-6/+26
|\ | | | | | | broken by the fix for security issue #19435. Patch by Zach Byrne.
| * Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,Ned Deily2014-07-134-5/+25
| |\ | | | | | | | | | broken by the fix for security issue #19435. Patch by Zach Byrne.
| | * Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,Ned Deily2014-07-134-5/+25
| | | | | | | | | | | | broken by the fix for security issue #19435. Patch by Zach Byrne.
* | | Issue #19076: Don't pass the redundant 'file' argument to self.error().Berker Peksag2014-07-122-1/+3
| | |
* | | asyncio: Server.close() leaves client sockets openVictor Stinner2014-07-121-2/+5
| | |
* | | asyncio: sync with TulipVictor Stinner2014-07-127-29/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Tulip issue #183: log socket events in debug mode - Log most important socket events: socket connected, new client, connection reset or closed by peer (EOF), etc. - Log time elapsed in DNS resolution (getaddrinfo) - Log pause/resume reading - Log time of SSL handshake - Log SSL handshake errors - Add a __repr__() method to many classes * Fix ProactorEventLoop() in debug mode. ProactorEventLoop._make_self_pipe() doesn't call call_soon() directly because it checks for the current loop which fails, because the method is called to build the event loop. * Cleanup _ProactorReadPipeTransport constructor. Not need to set again _read_fut attribute to None, it is already done in the base class.
* | | asyncio: improve the documentation of serversVictor Stinner2014-07-113-19/+33
| | | | | | | | | | | | | | | | | | - Fix the documentation of Server.close(): it closes sockets - Replace AbstractServer with Server - Document Server.sockets attribute
* | | asyncio, Tulip issue 180: Make Server attributes and methods privateVictor Stinner2014-07-113-24/+25
| | | | | | | | | | | | | | | | | | | | | - loop, waiters and active_count attributes are now private - attach(), detach() and wakeup() methods are now private The sockets attribute remains public.
* | | Issue #21906: Make Tools/scripts/md5sum.py work in Python 3.Berker Peksag2014-07-113-13/+77
| | | | | | | | | | | | Patch by Zachary Ware.
* | | asyncio: enhance documentation of platform supportVictor Stinner2014-07-112-9/+26
| | |
* | | asyncio: sync with TulipVictor Stinner2014-07-116-16/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Tulip issue #182: Improve logs of BaseEventLoop._run_once() - Don't log non-blocking poll - Only log polling with a timeout if it gets events or if it timed out after more than 1 second. * Fix some pyflakes warnings: remove unused imports
* | | Issue #18592: Make unittest for SearchDialogBase work on all tk versions.Terry Jan Reedy2014-07-111-4/+4
| | |
* | | Idle News entries.Terry Jan Reedy2014-07-111-0/+7
| | |
* | | #21940: Add unittest for WidgetRedirector. Initial patch by Saimadhav Heblikar.Terry Jan Reedy2014-07-113-13/+145
| | |
* | | asyncio: sync with TulipVictor Stinner2014-07-103-18/+6
| | | | | | | | | | | | | | | | | | | | | - CoroWrapper.__del__() now reuses repr(CoroWrapper) to log the "... was never yielded from" warning - Improve CoroWrapper: copy also the qualified name on Python 3.4, not only on Python 3.5+
* | | asyncio: sync with TulipVictor Stinner2014-07-104-15/+70
| | | | | | | | | | | | | | | | | | | | | - repr(Task) and repr(CoroWrapper) now also includes where these objects were created. If the coroutine is not a generator (don't use "yield from"), use the location of the function, not the location of the coro() wrapper. - Fix create_task(): truncate the traceback to hide the call to create_task().
* | | asyncio: sync with TulipVictor Stinner2014-07-103-16/+74
| | | | | | | | | | | | | | | | | | | | | | | | - Issues #21936, #21163: Fix sporadic failures of test_future_exception_never_retrieved() - Handle.cancel() now clears references to callback and args - In debug mode, repr(Handle) now contains the location where the Handle was created.
* | | Issue #21942: Fixed source file viewing in pydoc's server mode on Windows.Zachary Ware2014-07-103-10/+7
| | |
* | | Issue #21940: add docstrings to idlelib.WidgetRedirector.Terry Jan Reedy2014-07-101-18/+60
| | |
* | | Issues #21948 and #16040: Fix typos.Berker Peksag2014-07-092-2/+2
| | |
* | | asyncion, Tulip issue 181: BaseEventLoop.create_datagram_endpoint() now waitsVictor Stinner2014-07-085-5/+28
| | | | | | | | | | | | | | | until protocol.connection_made() has been called. Document also why transport constructors use a waiter.
* | | Issue #21680: Document asyncio event loopsVictor Stinner2014-07-084-88/+195
| | |
* | | Update asyncio documentationVictor Stinner2014-07-084-49/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Document the new create_task() method - "Hide" the Task class: point to the create_task() method for interoperability - Rewrite the documentation of the Task class - Document the "Pending task destroyed" - Update output in debug mode of examples in the dev section - Replace Task() with create_task() in examples