]> granicus.if.org Git - python/commit
asyncio: sync with Tulip
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 14 Jul 2014 16:33:40 +0000 (18:33 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 14 Jul 2014 16:33:40 +0000 (18:33 +0200)
commitacdb782a83d72a823030335e8f190890ae4df9cf
tree4a4a894ea9296027473031806b1b3dcbade6c1ac
parentb1ebfdddb356d5ad63bacb10589a402c6407a86c
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().
Lib/asyncio/base_events.py
Lib/asyncio/base_subprocess.py
Lib/asyncio/streams.py
Lib/asyncio/subprocess.py
Lib/asyncio/unix_events.py
Lib/test/test_asyncio/test_base_events.py