[issue27316] [PDB] NameError in list comprehension in PDB

2016-06-14 Thread Diaa Jad

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.org/issue27316>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27316] [PDB] NameError in list comprehension in PDB

2016-06-14 Thread Diaa Jad

Changes by Diaa Jad :


--
components: +Library (Lib) -Extension Modules

___
Python tracker 
<http://bugs.python.org/issue27316>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27316] [PDB] NameError in list comprehension in PDB

2016-06-14 Thread Diaa Jad

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 in [1,2] if z]
[1, 2]

--

___
Python tracker 
<http://bugs.python.org/issue27316>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27316] [PDB] NameError in list comprehension in PDB

2016-06-14 Thread Diaa Jad

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 this bug does not show up in the original release I think we can safely 
close the ticket and I will try to debug the issue locally.

--

___
Python tracker 
<http://bugs.python.org/issue27316>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com