Changes by Diaa Jad :
--
components: Extension Modules
nosy: Diaa Jad
priority: normal
severity: normal
status: open
title: [PDB] NameError in list comprehension in PDB
type: crash
versions: Python 3.4
___
Python tracker
<http://bugs.python.
Changes by Diaa Jad :
--
components: +Library (Lib) -Extension Modules
___
Python tracker
<http://bugs.python.org/issue27316>
___
___
Python-bugs-list mailin
New submission from Diaa Jad:
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 i
Diaa Jad added the comment:
I actually drop to pdb from nosetests on test failure using --pdb option. I use
a Fedora 23 machine.
Anyway, it looks like this issue is specific to the virtual environment we use
at work that uses version 3.4.4, as I couldn't reproduce it on native 3.4 .
As