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 Jonathan Crall
Recipients Jonathan Crall
Date 2020-04-29.15:02:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588172525.03.0.278979936503.issue40438@roundup.psfhosted.org>
In-reply-to
Content
I first noticed this when testing xdoctest on Python 3.9, and then again when using IPython.

I was finally able to generate a minimal working example in Python itself. The following code:

python -c "print(eval(compile('[i for i in range(3)]', mode='eval', filename='foo', flags=221184)))"

produces 

[0, 1, 2]
 
in Python <= 3.8, but in 3.9 it produces: 

<coroutine object <module> at 0x7fa336d40ec0>
<string>:1: RuntimeWarning: coroutine '<module>' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback


Is this an intended change? I can't find any notes in the CHANGELOG that seem to correspond to it.
History
Date User Action Args
2020-04-29 15:02:05Jonathan Crallsetrecipients: + Jonathan Crall
2020-04-29 15:02:05Jonathan Crallsetmessageid: <1588172525.03.0.278979936503.issue40438@roundup.psfhosted.org>
2020-04-29 15:02:05Jonathan Cralllinkissue40438 messages
2020-04-29 15:02:04Jonathan Crallcreate