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.
Created on 2016年06月14日 07:40 by Diaa Jad, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg268539 - (view) | Author: Diaa Jad (Diaa Jad) | Date: 2016年06月14日 07:46 | |
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] |
|||
| msg268542 - (view) | Author: SilentGhost (SilentGhost) * (Python triager) | Date: 2016年06月14日 08:18 | |
I cannot reproduce this issue on 3.5, do you have a chance to test this on a 3.5 or some other version of python? Also, could you provide any more details of your system? |
|||
| msg268561 - (view) | Author: Diaa Jad (Diaa Jad) | Date: 2016年06月14日 14:43 | |
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. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:32 | admin | set | github: 71503 |
| 2016年06月14日 14:53:27 | SilentGhost | set | status: open -> closed resolution: works for me stage: resolved |
| 2016年06月14日 14:43:20 | Diaa Jad | set | messages: + msg268561 |
| 2016年06月14日 08:18:46 | SilentGhost | set | nosy:
+ SilentGhost messages: + msg268542 |
| 2016年06月14日 08:12:25 | SilentGhost | set | nosy:
+ georg.brandl type: crash -> behavior |
| 2016年06月14日 07:46:27 | Diaa Jad | set | messages: + msg268539 |
| 2016年06月14日 07:44:00 | Diaa Jad | set | components: + Library (Lib), - Extension Modules |
| 2016年06月14日 07:40:48 | Diaa Jad | create | |