Re: [python-tulip] Strange behavior of asyncio in 3.6

2017-01-13 Thread Yury Selivanov
Yes, this is a bug, and looks like Task.all_tasks() has the same problem. I’ve created a bug to track the issue: http://bugs.python.org/issue29271 Yury > On Jan 13, 2017, at 4:12 PM, Guido van Rossum wrote: > > Can you file a bug in the CPython tracker for this? bugs.python.org. > > On Fri, Ja

Re: [python-tulip] Strange behavior of asyncio in 3.6

2017-01-13 Thread Guido van Rossum
Can you file a bug in the CPython tracker for this? bugs.python.org. On Fri, Jan 13, 2017 at 9:20 AM, Alberto Berti wrote: > Hi, > > working with the Python 3.6 asyncio implemented in C, i've got what is > for me a strange behavior of the asyncio.Task.current task > function. Executing the follo

[python-tulip] Strange behavior of asyncio in 3.6

2017-01-13 Thread Alberto Berti
Hi, working with the Python 3.6 asyncio implemented in C, i've got what is for me a strange behavior of the asyncio.Task.current task function. Executing the following test: import asyncio async def coro(): print(asyncio.Task.current_task()) print(asyncio.Task.current_task(None))