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

Jonathan Crall report at bugs.python.org
Wed Apr 29 11:11:26 EDT 2020


Jonathan Crall <erotemic at gmail.com> added the comment:

Ah, sorry. I neglected all the important information. 

I tested this using: 

Python 3.9.0a5 (default, Apr 23 2020, 14:11:34) 
[GCC 8.3.0]


Specifically, I ran in a docker container: 

DOCKER_IMAGE=circleci/python:3.9-rc
docker pull $DOCKER_IMAGE
docker run --rm -it $DOCKER_IMAGE bash

And then in the bash shell in the docker image I ran:

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

----------

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


More information about the Python-bugs-list mailing list