]> granicus.if.org Git - python/log
python
11 years ago(Merge 3.4) asyncio: Fix test_stdin_broken_pipe(), drain() can also raise
Victor Stinner [Thu, 17 Jul 2014 12:01:39 +0000 (14:01 +0200)]
(Merge 3.4) asyncio: Fix test_stdin_broken_pipe(), drain() can also raise
ConnectionResetError

11 years agoasyncio: Fix test_stdin_broken_pipe(), drain() can also raise
Victor Stinner [Thu, 17 Jul 2014 12:01:14 +0000 (14:01 +0200)]
asyncio: Fix test_stdin_broken_pipe(), drain() can also raise
ConnectionResetError

11 years ago(Merge 3.4) asyncio, tulip issue 190: Process.communicate() now ignores
Victor Stinner [Thu, 17 Jul 2014 11:12:20 +0000 (13:12 +0200)]
(Merge 3.4) asyncio, tulip issue 190: Process.communicate() now ignores
ConnectionResetError too

11 years agoasyncio, tulip issue 190: Process.communicate() now ignores
Victor Stinner [Thu, 17 Jul 2014 11:12:03 +0000 (13:12 +0200)]
asyncio, tulip issue 190: Process.communicate() now ignores
ConnectionResetError too

11 years ago(Merge 3.4) asyncio, tulip issue 190: Process.communicate() must ignore
Victor Stinner [Thu, 17 Jul 2014 10:48:33 +0000 (12:48 +0200)]
(Merge 3.4) asyncio, tulip issue 190: Process.communicate() must ignore
BrokenPipeError

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.

11 years agoasyncio, tulip issue 190: Process.communicate() must ignore BrokenPipeError
Victor Stinner [Thu, 17 Jul 2014 10:25:27 +0000 (12:25 +0200)]
asyncio, tulip issue 190: Process.communicate() must ignore BrokenPipeError

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.

11 years agoIssue #21994: Merge with 3.4.
Berker Peksag [Thu, 17 Jul 2014 02:02:02 +0000 (05:02 +0300)]
Issue #21994: Merge with 3.4.

11 years agoIssue #21994: Fix SyntaxError in the SSLContext.check_hostname documentation.
Berker Peksag [Thu, 17 Jul 2014 02:00:36 +0000 (05:00 +0300)]
Issue #21994: Fix SyntaxError in the SSLContext.check_hostname documentation.

11 years agoIssue 21044: tarfile.open() now handles fileobj with an integer 'name'
Serhiy Storchaka [Wed, 16 Jul 2014 21:00:26 +0000 (00:00 +0300)]
Issue 21044: tarfile.open() now handles fileobj with an integer 'name'
attribute.  Based on patch by Martin Panter.

11 years agoIssue 21044: tarfile.open() now handles fileobj with an integer 'name'
Serhiy Storchaka [Wed, 16 Jul 2014 20:58:58 +0000 (23:58 +0300)]
Issue 21044: tarfile.open() now handles fileobj with an integer 'name'
attribute.  Based on patch by Martin Panter.

11 years agoMerge with 3.4
Zachary Ware [Wed, 16 Jul 2014 19:49:05 +0000 (14:49 -0500)]
Merge with 3.4

11 years agoFix a minor typo in the turtle docs. Found by Brandon Passmore on docs@.
Zachary Ware [Wed, 16 Jul 2014 19:48:48 +0000 (14:48 -0500)]
Fix a minor typo in the turtle docs.  Found by Brandon Passmore on docs@.

11 years agoIssue #21918: Convert test_tools.py to a sub-package of test.
Zachary Ware [Wed, 16 Jul 2014 19:31:51 +0000 (14:31 -0500)]
Issue #21918: Convert test_tools.py to a sub-package of test.

Merge with 3.4.

11 years agoIssue #21918: Convert test_tools.py to a sub-package of test.
Zachary Ware [Wed, 16 Jul 2014 19:26:09 +0000 (14:26 -0500)]
Issue #21918: Convert test_tools.py to a sub-package of test.

11 years agoMerge removal of Tools/scripts/pydocgui.pyw
Zachary Ware [Wed, 16 Jul 2014 18:30:27 +0000 (13:30 -0500)]
Merge removal of Tools/scripts/pydocgui.pyw

11 years agoRemove Tools/scripts/pydocgui.pyw.
Zachary Ware [Wed, 16 Jul 2014 18:24:55 +0000 (13:24 -0500)]
Remove Tools/scripts/pydocgui.pyw.

pydoc.gui was removed over 3 years ago (#10818), this script has been
utterly bereft of worth since then.

11 years ago(Merge 3.4) asyncio: test_as_completed(): disable "slow callback" warning
Victor Stinner [Wed, 16 Jul 2014 16:54:25 +0000 (18:54 +0200)]
(Merge 3.4) asyncio: test_as_completed(): disable "slow callback" warning

11 years agoasyncio: test_as_completed(): disable "slow callback" warning
Victor Stinner [Wed, 16 Jul 2014 16:54:13 +0000 (18:54 +0200)]
asyncio: test_as_completed(): disable "slow callback" warning

11 years ago(Merge 3.4) Issue #21163: Fix "destroy pending task" warning in test_wait_errors()
Victor Stinner [Wed, 16 Jul 2014 16:50:54 +0000 (18:50 +0200)]
(Merge 3.4) Issue #21163: Fix "destroy pending task" warning in test_wait_errors()

11 years agoIssue #21163: Fix "destroy pending task" warning in test_wait_errors()
Victor Stinner [Wed, 16 Jul 2014 16:50:39 +0000 (18:50 +0200)]
Issue #21163: Fix "destroy pending task" warning in test_wait_errors()

11 years ago(Merge 3.4) Issue #21163, asyncio: Ignore "destroy pending task" warnings for
Victor Stinner [Wed, 16 Jul 2014 16:36:58 +0000 (18:36 +0200)]
(Merge 3.4) Issue #21163, asyncio: Ignore "destroy pending task" warnings for
private tasks in gather().

11 years agoIssue #21163, asyncio: Ignore "destroy pending task" warnings for private tasks
Victor Stinner [Wed, 16 Jul 2014 16:36:24 +0000 (18:36 +0200)]
Issue #21163, asyncio: Ignore "destroy pending task" warnings for private tasks
in gather().

11 years ago(Merge 3.4) asyncio: test_selector_events: remove duplicate call to
Victor Stinner [Wed, 16 Jul 2014 16:03:26 +0000 (18:03 +0200)]
(Merge 3.4) asyncio: test_selector_events: remove duplicate call to
_on_handshake() method

The _SelectorSslTransport constructor already calls it.

11 years agoasyncio: test_selector_events: remove duplicate call to _on_handshake() method
Victor Stinner [Wed, 16 Jul 2014 16:02:10 +0000 (18:02 +0200)]
asyncio: test_selector_events: remove duplicate call to _on_handshake() method

The _SelectorSslTransport constructor already calls it.

11 years agoFixed recently added Misc/NEWS entry which was moved during merge
Tal Einat [Wed, 16 Jul 2014 13:52:20 +0000 (16:52 +0300)]
Fixed recently added Misc/NEWS entry which was moved during merge

11 years agoIssue #21765: Add support for non-ascii identifiers to HyperParser
Tal Einat [Wed, 16 Jul 2014 13:41:14 +0000 (16:41 +0300)]
Issue #21765: Add support for non-ascii identifiers to HyperParser

11 years agoIssue #21765: Add support for non-ascii identifiers to HyperParser
Tal Einat [Wed, 16 Jul 2014 13:33:36 +0000 (16:33 +0300)]
Issue #21765: Add support for non-ascii identifiers to HyperParser

11 years agoIssue #21645, #21985: Remove debug code
Victor Stinner [Wed, 16 Jul 2014 08:24:27 +0000 (10:24 +0200)]
Issue #21645, #21985: Remove debug code

11 years agoFix getargspec() doctring (varkw -> keywords).
Guido van Rossum [Tue, 15 Jul 2014 19:29:11 +0000 (12:29 -0700)]
Fix getargspec() doctring (varkw -> keywords).

11 years agoIssue #18974: Tools/scripts/diff.py now uses argparse instead of optparse.
Serhiy Storchaka [Tue, 15 Jul 2014 10:23:58 +0000 (13:23 +0300)]
Issue #18974: Tools/scripts/diff.py now uses argparse instead of optparse.

11 years agoMerge with 3.4
Terry Jan Reedy [Tue, 15 Jul 2014 03:07:47 +0000 (23:07 -0400)]
Merge with 3.4

11 years agoIssue #21982: Add minimal unittest for configDialog with 46% coverage.
Terry Jan Reedy [Tue, 15 Jul 2014 03:07:32 +0000 (23:07 -0400)]
Issue #21982: Add minimal unittest for configDialog with 46% coverage.
Fix regression that this test would have caught.

11 years agoMerge with Python 3.4
Victor Stinner [Mon, 14 Jul 2014 20:26:57 +0000 (22:26 +0200)]
Merge with Python 3.4

11 years agoasyncio tests: make quiet the logs of SSL handshake failures when running tests
Victor Stinner [Mon, 14 Jul 2014 20:26:34 +0000 (22:26 +0200)]
asyncio tests: make quiet the logs of SSL handshake failures when running tests
in debug mode

11 years agoIssue #21645: test_asyncio, log debug trace into sys.__stderr__, not in
Victor Stinner [Mon, 14 Jul 2014 20:04:18 +0000 (22:04 +0200)]
Issue #21645: test_asyncio, log debug trace into sys.__stderr__, not in
sys.stderr, to get output even if tests are run with the -j command line
option.

11 years agoIssue #21645: Add debug code to analyze a failure on FreeBSD 9
Victor Stinner [Mon, 14 Jul 2014 19:29:23 +0000 (21:29 +0200)]
Issue #21645: Add debug code to analyze a failure on FreeBSD 9

11 years agoMerge with Python 3.4
Victor Stinner [Mon, 14 Jul 2014 16:36:24 +0000 (18:36 +0200)]
Merge with Python 3.4

11 years agoasyncio: sync with Tulip
Victor Stinner [Mon, 14 Jul 2014 16:33:40 +0000 (18:33 +0200)]
asyncio: sync with Tulip

* 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().

11 years agoCall PyErr_NoMemory() when PyMem_Malloc() fails.
Serhiy Storchaka [Mon, 14 Jul 2014 09:20:49 +0000 (12:20 +0300)]
Call PyErr_NoMemory() when PyMem_Malloc() fails.

11 years agoCall PyErr_NoMemory() when PyMem_Malloc() fails.
Serhiy Storchaka [Mon, 14 Jul 2014 09:20:15 +0000 (12:20 +0300)]
Call PyErr_NoMemory() when PyMem_Malloc() fails.

11 years agomerge
Raymond Hettinger [Mon, 14 Jul 2014 08:52:44 +0000 (01:52 -0700)]
merge

11 years agoIssue 21977: Minor improvements to the regexes in the tokenizer example.
Raymond Hettinger [Mon, 14 Jul 2014 08:52:00 +0000 (01:52 -0700)]
Issue 21977:  Minor improvements to the regexes in the tokenizer example.

11 years agoMerge with 3.4
Terry Jan Reedy [Sun, 13 Jul 2014 21:27:41 +0000 (17:27 -0400)]
Merge with 3.4

11 years agoIssue #18592: Method return signature changes made to SearchDialogBase for
Terry Jan Reedy [Sun, 13 Jul 2014 21:27:26 +0000 (17:27 -0400)]
Issue #18592: Method return signature changes made to SearchDialogBase for
test purposes are now reflected in GrepDialog and ReplaceDialog.  Docstrings
are improved. Initial patch by Saimadhav Heblikar

11 years agoIssue #21323: Fix http.server to again handle scripts in CGI subdirectories,
Ned Deily [Sun, 13 Jul 2014 05:20:15 +0000 (22:20 -0700)]
Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,
broken by the fix for security issue #19435.  Patch by Zach Byrne.

11 years agoIssue #21323: Fix http.server to again handle scripts in CGI subdirectories,
Ned Deily [Sun, 13 Jul 2014 05:16:56 +0000 (22:16 -0700)]
Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,
broken by the fix for security issue #19435.  Patch by Zach Byrne.

11 years agoIssue #21323: Fix http.server to again handle scripts in CGI subdirectories,
Ned Deily [Sun, 13 Jul 2014 05:12:39 +0000 (22:12 -0700)]
Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,
broken by the fix for security issue #19435.  Patch by Zach Byrne.

11 years agoIssue #21323: Fix http.server to again handle scripts in CGI subdirectories,
Ned Deily [Sun, 13 Jul 2014 05:06:26 +0000 (22:06 -0700)]
Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,
broken by the fix for security issue #19435.  Patch by Zach Byrne.

11 years agoIssue #21966: Respect -q command-line option when code module is ran.
Alexander Belopolsky [Sat, 12 Jul 2014 20:36:33 +0000 (16:36 -0400)]
Issue #21966: Respect -q command-line option when code module is ran.

Contributed by Anton Barkovsky.

11 years agoIssue #19076: Merge with 3.4.
Berker Peksag [Sat, 12 Jul 2014 15:26:03 +0000 (18:26 +0300)]
Issue #19076: Merge with 3.4.

11 years agoIssue #19076: Don't pass the redundant 'file' argument to self.error().
Berker Peksag [Sat, 12 Jul 2014 15:24:32 +0000 (18:24 +0300)]
Issue #19076: Don't pass the redundant 'file' argument to self.error().

11 years agoIssue #21932: Skip test_os.test_large_read() on 32-bit system
Victor Stinner [Sat, 12 Jul 2014 09:03:53 +0000 (11:03 +0200)]
Issue #21932: Skip test_os.test_large_read() on 32-bit system

11 years agoMerge with 3.4
Victor Stinner [Sat, 12 Jul 2014 01:20:40 +0000 (03:20 +0200)]
Merge with 3.4

11 years agoasyncio: Server.close() leaves client sockets open
Victor Stinner [Sat, 12 Jul 2014 01:20:24 +0000 (03:20 +0200)]
asyncio: Server.close() leaves client sockets open

11 years agoMerge with 3.4
Victor Stinner [Sat, 12 Jul 2014 01:12:30 +0000 (03:12 +0200)]
Merge with 3.4

11 years agoasyncio: sync with Tulip
Victor Stinner [Sat, 12 Jul 2014 01:11:53 +0000 (03:11 +0200)]
asyncio: sync with Tulip

* 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.

11 years agoMerge 3.4
Victor Stinner [Fri, 11 Jul 2014 21:48:10 +0000 (23:48 +0200)]
Merge 3.4

11 years agoasyncio: improve the documentation of servers
Victor Stinner [Fri, 11 Jul 2014 21:47:40 +0000 (23:47 +0200)]
asyncio: improve the documentation of servers

- Fix the documentation of Server.close(): it closes sockets
- Replace AbstractServer with Server
- Document Server.sockets attribute

11 years agoasyncio, Tulip issue 180: Make Server attributes and methods private
Victor Stinner [Fri, 11 Jul 2014 20:52:21 +0000 (22:52 +0200)]
asyncio, Tulip issue 180: Make Server attributes and methods private

- loop, waiters and active_count attributes are now private
- attach(), detach() and wakeup() methods are now private

The sockets attribute remains public.

11 years agoIssue #21906: Merge from 3.4.
Berker Peksag [Fri, 11 Jul 2014 17:44:39 +0000 (20:44 +0300)]
Issue #21906: Merge from 3.4.

11 years agoIssue #21906: Make Tools/scripts/md5sum.py work in Python 3.
Berker Peksag [Fri, 11 Jul 2014 17:42:18 +0000 (20:42 +0300)]
Issue #21906: Make Tools/scripts/md5sum.py work in Python 3.

Patch by Zachary Ware.

11 years agoIssue #16382: Improve exception message of warnings.warn() for bad category.
Berker Peksag [Fri, 11 Jul 2014 16:50:25 +0000 (19:50 +0300)]
Issue #16382: Improve exception message of warnings.warn() for bad category.

Initial patch by Phil Elson.

11 years agoIssue #21932: Ooops, os.read(fd, size) allocates a buffer of size bytes, even
Victor Stinner [Fri, 11 Jul 2014 15:35:06 +0000 (17:35 +0200)]
Issue #21932: Ooops, os.read(fd, size) allocates a buffer of size bytes, even
if the file is much smaller. Add @bigmemtest decorator to the new
test_large_read().

11 years agoIssue #21932: os.read() now uses a :c:func:`Py_ssize_t` type instead of
Victor Stinner [Fri, 11 Jul 2014 15:04:41 +0000 (17:04 +0200)]
Issue #21932: os.read() now uses a :c:func:`Py_ssize_t` type instead of
:c:type:`int` for the size to support reading more than 2 GB at once. On
Windows, the size is truncted to INT_MAX. As any call to os.read(), the OS
may read less bytes than the number of requested bytes.

11 years ago(Merge 3.4) asyncio: enhance documentation of platform support
Victor Stinner [Fri, 11 Jul 2014 10:16:05 +0000 (12:16 +0200)]
(Merge 3.4) asyncio: enhance documentation of platform support

11 years agoasyncio: enhance documentation of platform support
Victor Stinner [Fri, 11 Jul 2014 10:13:39 +0000 (12:13 +0200)]
asyncio: enhance documentation of platform support

11 years ago(Merge 3.4) asyncio: sync with Tulip
Victor Stinner [Fri, 11 Jul 2014 09:58:52 +0000 (11:58 +0200)]
(Merge 3.4) asyncio: sync with Tulip

* 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

11 years agoasyncio: sync with Tulip
Victor Stinner [Fri, 11 Jul 2014 09:58:33 +0000 (11:58 +0200)]
asyncio: sync with Tulip

* 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

11 years agoMerge with 3.4
Terry Jan Reedy [Fri, 11 Jul 2014 04:37:31 +0000 (00:37 -0400)]
Merge with 3.4

11 years agoIssue #18592: Make unittest for SearchDialogBase work on all tk versions.
Terry Jan Reedy [Fri, 11 Jul 2014 04:37:14 +0000 (00:37 -0400)]
Issue #18592: Make unittest for SearchDialogBase work on all tk versions.

11 years agoNews entries
Terry Jan Reedy [Fri, 11 Jul 2014 04:26:21 +0000 (00:26 -0400)]
News entries

11 years agoIdle News entries.
Terry Jan Reedy [Fri, 11 Jul 2014 04:24:27 +0000 (00:24 -0400)]
Idle News entries.

11 years agoMerge with 3.4
Terry Jan Reedy [Fri, 11 Jul 2014 04:16:16 +0000 (00:16 -0400)]
Merge with 3.4

11 years ago#21940: Add unittest for WidgetRedirector. Initial patch by Saimadhav Heblikar.
Terry Jan Reedy [Fri, 11 Jul 2014 04:16:00 +0000 (00:16 -0400)]
#21940: Add unittest for WidgetRedirector. Initial patch by Saimadhav Heblikar.

11 years ago(Merge 3.4) asyncio: sync with Tulip
Victor Stinner [Thu, 10 Jul 2014 23:24:33 +0000 (01:24 +0200)]
(Merge 3.4) asyncio: sync with Tulip

- 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+

11 years agoasyncio: sync with Tulip
Victor Stinner [Thu, 10 Jul 2014 23:04:16 +0000 (01:04 +0200)]
asyncio: sync with Tulip

- 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+

11 years ago(Merge 3.4) asyncio: sync with Tulip
Victor Stinner [Thu, 10 Jul 2014 22:23:17 +0000 (00:23 +0200)]
(Merge 3.4) asyncio: sync with Tulip

- 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().

11 years agoasyncio: sync with Tulip
Victor Stinner [Thu, 10 Jul 2014 22:21:27 +0000 (00:21 +0200)]
asyncio: sync with Tulip

- 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().

11 years ago(Merge 3.4) asyncio: sync with Tulip
Victor Stinner [Thu, 10 Jul 2014 20:34:58 +0000 (22:34 +0200)]
(Merge 3.4) asyncio: sync with Tulip

- 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.

11 years agoasyncio: sync with Tulip
Victor Stinner [Thu, 10 Jul 2014 20:32:58 +0000 (22:32 +0200)]
asyncio: sync with Tulip

- 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.

11 years agoIssue #21942: Fixed source file viewing in pydoc's server mode on Windows.
Zachary Ware [Thu, 10 Jul 2014 16:21:01 +0000 (11:21 -0500)]
Issue #21942: Fixed source file viewing in pydoc's server mode on Windows.

11 years agoIssue #21942: Fixed source file viewing in pydoc's server mode on Windows.
Zachary Ware [Thu, 10 Jul 2014 16:18:00 +0000 (11:18 -0500)]
Issue #21942: Fixed source file viewing in pydoc's server mode on Windows.

11 years agoMerge with 3.4
Terry Jan Reedy [Thu, 10 Jul 2014 05:17:11 +0000 (01:17 -0400)]
Merge with 3.4

11 years agoIssue #21940: add docstrings to idlelib.WidgetRedirector.
Terry Jan Reedy [Thu, 10 Jul 2014 05:16:49 +0000 (01:16 -0400)]
Issue #21940: add docstrings to idlelib.WidgetRedirector.

11 years agoIssues #21948 and #16040: Merge with 3.4.
Berker Peksag [Wed, 9 Jul 2014 17:16:23 +0000 (20:16 +0300)]
Issues #21948 and #16040: Merge with 3.4.

11 years agoIssues #21948 and #16040: Fix typos.
Berker Peksag [Wed, 9 Jul 2014 17:15:28 +0000 (20:15 +0300)]
Issues #21948 and #16040: Fix typos.

11 years agoIssue #6916: Use assertWarns in test_asynchat.
Berker Peksag [Wed, 9 Jul 2014 00:12:23 +0000 (03:12 +0300)]
Issue #6916: Use assertWarns in test_asynchat.

11 years agoFix bootstrapping asdl -- it didn't work with Python 2.7.
Guido van Rossum [Tue, 8 Jul 2014 23:22:48 +0000 (16:22 -0700)]
Fix bootstrapping asdl -- it didn't work with Python 2.7.

11 years agoIssue #21938: simplify gen_iternext()
Antoine Pitrou [Tue, 8 Jul 2014 22:43:23 +0000 (18:43 -0400)]
Issue #21938: simplify gen_iternext()

11 years ago(Merge 3.4) asyncion, Tulip issue 181: BaseEventLoop.create_datagram_endpoint()
Victor Stinner [Tue, 8 Jul 2014 21:58:25 +0000 (23:58 +0200)]
(Merge 3.4) asyncion, Tulip issue 181: BaseEventLoop.create_datagram_endpoint()
now waits until protocol.connection_made() has been called. Document also why
transport constructors use a waiter.

11 years agoasyncion, Tulip issue 181: BaseEventLoop.create_datagram_endpoint() now waits
Victor Stinner [Tue, 8 Jul 2014 21:57:31 +0000 (23:57 +0200)]
asyncion, Tulip issue 181: BaseEventLoop.create_datagram_endpoint() now waits
until protocol.connection_made() has been called. Document also why transport
constructors use a waiter.

11 years ago(Merge 3.4) Issue #21680: Document asyncio event loops
Victor Stinner [Tue, 8 Jul 2014 21:43:11 +0000 (23:43 +0200)]
(Merge 3.4) Issue #21680: Document asyncio event loops

11 years agoIssue #21680: Document asyncio event loops
Victor Stinner [Tue, 8 Jul 2014 21:42:38 +0000 (23:42 +0200)]
Issue #21680: Document asyncio event loops

11 years agoIssue #21907: Make the buildbot clean script always return 0.
Zachary Ware [Tue, 8 Jul 2014 14:41:57 +0000 (09:41 -0500)]
Issue #21907: Make the buildbot clean script always return 0.

The clean script is a "best effort" thing anyway, and this will hopefully
revive the XP buildbot.

11 years agoMerge 3.4
Victor Stinner [Tue, 8 Jul 2014 10:43:24 +0000 (12:43 +0200)]
Merge 3.4

asyncio: sync with Tulip

- Tulip issue 185: Add a create_task() method to event loops. The create_task()
  method can be overriden in custom event loop to implement their own task
  class. For example, greenio and Pulsar projects use their own task class. The
  create_task() method is now preferred over creating directly task using the
  Task class.
- tests: fix a warning
- fix typo in the name of a test function
- Update AbstractEventLoop: add new event loop methods; update also the unit test

Update asyncio documentation

- 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

11 years agoUpdate asyncio documentation
Victor Stinner [Tue, 8 Jul 2014 10:39:10 +0000 (12:39 +0200)]
Update asyncio documentation

- 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

11 years agoasyncio: sync with Tulip
Victor Stinner [Tue, 8 Jul 2014 09:29:25 +0000 (11:29 +0200)]
asyncio: sync with Tulip

- Tulip issue 185: Add a create_task() method to event loops. The create_task()
  method can be overriden in custom event loop to implement their own task
  class. For example, greenio and Pulsar projects use their own task class. The
  create_task() method is now preferred over creating directly task using the
  Task class.
- tests: fix a warning
- fix typo in the name of a test function
- Update AbstractEventLoop: add new event loop methods; update also the unit test

11 years agoFix compilation failure (followup to #21803)
Antoine Pitrou [Mon, 7 Jul 2014 23:08:47 +0000 (19:08 -0400)]
Fix compilation failure (followup to #21803)

11 years agoIssue #21803: remove macro indirections in complexobject.h
Antoine Pitrou [Mon, 7 Jul 2014 22:49:30 +0000 (18:49 -0400)]
Issue #21803: remove macro indirections in complexobject.h

11 years ago(Merge 3.4) Issue #11259: asynchat.async_chat().set_terminator() now raises a
Victor Stinner [Mon, 7 Jul 2014 22:34:48 +0000 (00:34 +0200)]
(Merge 3.4) Issue #11259: asynchat.async_chat().set_terminator() now raises a
ValueError if the number of received bytes is negative.