New submission from castix <vincenzo.castig...@axant.it>:
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 ---------- components: Library (Lib) messages: 357807 nosy: castix priority: normal severity: normal status: open title: [PDB] NameError in list comprehension in PDB type: behavior versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38970> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com