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 2008年03月17日 18:20 by brett.cannon, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg63706 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2008年03月17日 18:20 | |
If you use a iteration variable from a list comprehension from outside the list comprehension itself should raise a Py3K warning. |
|||
| msg63831 - (view) | Author: Taek Joo Kim (taicki) * | Date: 2008年03月18日 00:59 | |
>>> i = 3 >>> [i for i in range(10)] >>> i 9 In 2.6, the original value of a variable is changed by the list comprehension. In 3.0, it is not. To fix this, we need many changes on AST. |
|||
| msg84824 - (view) | Author: Jeremy Hylton (jhylton) (Python triager) | Date: 2009年03月31日 16:19 | |
Seemed like a good idea, but no one knew how to do it. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:31 | admin | set | github: 46597 |
| 2009年03月31日 16:19:44 | jhylton | set | status: open -> closed resolution: wont fix messages: + msg84824 |
| 2009年03月31日 16:18:44 | jhylton | set | nosy:
+ jhylton |
| 2008年03月18日 00:59:57 | taicki | set | nosy:
+ taicki messages: + msg63831 |
| 2008年03月17日 20:12:00 | brett.cannon | set | priority: release blocker -> critical |
| 2008年03月17日 18:20:03 | brett.cannon | create | |