]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
asyncio: sync with Tulip
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 25 Jul 2014 11:05:20 +0000 (13:05 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 25 Jul 2014 11:05:20 +0000 (13:05 +0200)
commit18a28dc5c28ae9a953f537486780159ddb768702
treee169539abf96f9e2b1e90efbf0fe960031a69d63
parent1a901cc952a59cbc5dded92ffd7df43efb62a7e4
asyncio: sync with Tulip

* Fix _WaitHandleFuture.cancel(): return the result of the parent cancel()
  method.
* _OverlappedFuture.cancel() now clears its reference to the overlapped object.
  Make also the _OverlappedFuture.ov attribute private.
* Check if _WaitHandleFuture completed before unregistering it in the callback.
  Add also _WaitHandleFuture._poll() and repr(_WaitHandleFuture).
* _WaitHandleFuture now unregisters its wait handler if WaitForSingleObject()
  raises an exception.
* _OverlappedFuture.set_exception() now cancels the overlapped operation.
Lib/asyncio/proactor_events.py
Lib/asyncio/windows_events.py