Message357807
Related to https://bugs.python.org/issue27316
This code works from the repl:
Python 3.7.4 (default, Oct 4 2019, 06:57:26)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pdb; pdb.set_trace()
--Return--
> <stdin>(1)<module>()->None
(Pdb) z = True
(Pdb) [x for x in [1,2] if z]
[1, 2]
(Pdb)
However in my (turbogears2) wsgi application it raises:
(Pdb) z = True
(Pdb) [x for x in [1,2] if z]
*** NameError: name 'z' is not defined
(Pdb) z
True
(Pdb)
I don't know how to report the issue in a reproducible way.
Thanks |
|
Date |
User |
Action |
Args |
2019-12-04 15:17:04 | castix | set | recipients:
+ castix |
2019-12-04 15:17:04 | castix | set | messageid: <1575472624.05.0.465658492617.issue38970@roundup.psfhosted.org> |
2019-12-04 15:17:03 | castix | link | issue38970 messages |
2019-12-04 15:17:03 | castix | create | |
|