[issue37494] Call asyncio Future in scope

2019-07-03 Thread Fourcade
Fourcade added the comment: Here's the file with an example. The get_progress function always outputs 0. -- Added file: https://bugs.python.org/file48454/test_progress.py ___ Python tracker <https://bugs.python.org/is

[issue37494] Call asyncio Future in scope

2019-07-03 Thread Fourcade
Fourcade added the comment: If I add a simple print inside long_task, the print is executed correctly. So it seems this code actually runs the loop. (I'm on python 3.6.8). -- ___ Python tracker <https://bugs.python.org/is

[issue37494] Call asyncio Future in scope

2019-07-03 Thread Fourcade
New submission from Fourcade : I'm trying to get the progession of my asyncIO Futures. For some reason, I can't get value updates inside any other scope. For example: ``` import concurrent.futures import time import asyncio import random def get_progress(futures): return s