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 Diaa Jad
Recipients Diaa Jad
Date 2016-06-14.07:46:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465890387.77.0.82038148147.issue27316@psf.upfronthosting.co.za>
In-reply-to
Content
This code fails in the python debugger:
(Pdb) z = True
(Pdb) p [x for x in [1,2] if z]
*** NameError: name 'z' is not defined

While the same code works in the interactive shell:
>>> [x for x in [1,2] if z]
[1, 2]
History
Date User Action Args
2016-06-14 07:46:27Diaa Jadsetrecipients: + Diaa Jad
2016-06-14 07:46:27Diaa Jadsetmessageid: <1465890387.77.0.82038148147.issue27316@psf.upfronthosting.co.za>
2016-06-14 07:46:27Diaa Jadlinkissue27316 messages
2016-06-14 07:46:27Diaa Jadcreate