K
kepes.krisztian
Hi !
In
Unifying types and classes in Python 2.2
article I see that:
We can also use the new type in contexts where classic only allows
"real" dictionaries, such as the locals/globals dictionaries for the
exec statement or the built-in function eval():
But I dont' understand that:
exec "x = 3; print x" in a
So what this code do ?
Why we need "in a" ?
This get same result !
Thanx for help:
FT
In
Unifying types and classes in Python 2.2
article I see that:
We can also use the new type in contexts where classic only allows
"real" dictionaries, such as the locals/globals dictionaries for the
exec statement or the built-in function eval():
3print a.keys() [1, 2]
exec "x = 3; print x" in a
But I dont' understand that:
exec "x = 3; print x" in a
So what this code do ?
Why we need "in a" ?
This get same result !
Thanx for help:
FT