This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Evgeny Nizhibitsky, asvetlov, vstinner, yselivanov
Date 2019-10-10.09:52:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570701158.11.0.627231041645.issue38430@roundup.psfhosted.org>
In-reply-to
Content
Well, that's a common issue when using asyncio: you forgot await.

async def main(_loop):
    while True:
        with futures.ThreadPoolExecutor() as pool:
            _loop.run_in_executor(pool, nop)
        sys.stdout.write(f'\r{get_mem():0.3f}MB')

It should be: "await _loop.run_in_executor(pool, nop)" ;-)

Sadly, PYTHONASYNCIODEBUG=1 env var doesn't complain on this bug.

See: https://docs.python.org/dev/library/asyncio-dev.html#debug-mode
History
Date User Action Args
2019-10-10 09:52:38vstinnersetrecipients: + vstinner, asvetlov, yselivanov, Evgeny Nizhibitsky
2019-10-10 09:52:38vstinnersetmessageid: <1570701158.11.0.627231041645.issue38430@roundup.psfhosted.org>
2019-10-10 09:52:38vstinnerlinkissue38430 messages
2019-10-10 09:52:38vstinnercreate