Message268539
| 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:27 | Diaa Jad | set | recipients:
+ Diaa Jad |
| 2016年06月14日 07:46:27 | Diaa Jad | set | messageid: <1465890387.77.0.82038148147.issue27316@psf.upfronthosting.co.za> |
| 2016年06月14日 07:46:27 | Diaa Jad | link | issue27316 messages |
| 2016年06月14日 07:46:27 | Diaa Jad | create |
|