[Python-Dev] PEP 3000 and exec (original) (raw)
Sokolov Yura falcon at intercable.ru
Tue Oct 11 08:33:43 CEST 2005
- Previous message: [Python-Dev] problem with genexp
- Next message: [Python-Dev] Pythonic concurrency - offtopic
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Agree.
i=1 def a(): i=2 def b(): print i return b
a()() 2 def a(): i=2 def b(): exec "print i" return b
a()() 1
- Previous message: [Python-Dev] problem with genexp
- Next message: [Python-Dev] Pythonic concurrency - offtopic
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]