[issue29432] wait_for(gather(...)) logs weird error message

2017-08-07 Thread Chris Jerdonek
Chris Jerdonek added the comment: By the way, I see this exact issue was also raised and discussed here, with a couple responses by Guido, too: https://github.com/python/asyncio/issues/253 -- ___ Python tracker

[issue29432] wait_for(gather(...)) logs weird error message

2017-08-07 Thread Chris Jerdonek
Chris Jerdonek added the comment: I noticed that the future defined by asyncio.gather(sleep) is in a "pending" state immediately after the asyncio.TimeoutError. One workaround is to wait for the cancellation to finish: @asyncio.coroutine def main(): sleep = asyncio.sleep(0.2)

[issue29432] wait_for(gather(...)) logs weird error message

2017-02-08 Thread Martin Teichmann
Martin Teichmann added the comment: I added a solution to this problem. I just silence the bad error message by overwriting _GatheringFuture.__del__ to do nothing. This may have undesired side effects, though. -- ___ Python tracker

[issue29432] wait_for(gather(...)) logs weird error message

2017-02-03 Thread Martin Teichmann
New submission from Martin Teichmann: when waiting for a gather that times out, everything works as expected, yet a weird error message is logged. To give a minimal example: import asyncio @asyncio.coroutine def main(): try: sleep = asyncio.sleep(0.2)

[issue29432] wait_for(gather(...)) logs weird error message

2017-02-03 Thread Martin Teichmann
Changes by Martin Teichmann : -- type: -> behavior ___ Python tracker ___ ___