Home
About the author
About
Projects
Expertise
Google Summer of Code
Google Summer of Code 2013
Advertising on this blog
=
Home
Scope of list comprehension iterator in Python
16 years ago
01 Jun 10 14:16 +0000 by
Ivan Vučica
Know about this?
x = [i * 2 for i in [1, 2, 3, 4]]
Be careful. The scope of "i" is not limited to the expression it is used in.
(
non-amp
)