[issue40438] Python 3.9 eval on list comprehension sometimes returns coroutines

STINNER Victor report at bugs.python.org
Wed Apr 29 11:04:27 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

> I first noticed this when testing xdoctest on Python 3.9, and then again when using IPython.

What is your Python 3.9 exact version number?

I cannot reproduce your issue with Python 3.9.0a6:

vstinner at apu$ ./python -c "print(eval(compile('[i for i in range(3)]', mode='eval', filename='foo', flags=221184)))"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ValueError: compile(): unrecognised flags

vstinner at apu$ ./python -VV
Python 3.9.0a6+ (heads/master:9a8c1315c3, Apr 29 2020, 17:03:41) 
[GCC 9.3.1 20200408 (Red Hat 9.3.1-2)]

----------
nosy: +vstinner

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40438>
_______________________________________


More information about the Python-bugs-list mailing list