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 castix
Recipients castix
Date 2019-12-04.15:17:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1575472624.05.0.465658492617.issue38970@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2019-12-04 15:17:04castixsetrecipients: + castix
2019-12-04 15:17:04castixsetmessageid: <1575472624.05.0.465658492617.issue38970@roundup.psfhosted.org>
2019-12-04 15:17:03castixlinkissue38970 messages
2019-12-04 15:17:03castixcreate