Message367651
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. |
|
Date |
User |
Action |
Args |
2020-04-29 15:02:05 | Jonathan Crall | set | recipients:
+ Jonathan Crall |
2020-04-29 15:02:05 | Jonathan Crall | set | messageid: <1588172525.03.0.278979936503.issue40438@roundup.psfhosted.org> |
2020-04-29 15:02:05 | Jonathan Crall | link | issue40438 messages |
2020-04-29 15:02:04 | Jonathan Crall | create | |
|