Hacker News
new
|
comments
|
show
|
ask
|
jobs
|
submit
login
The exec Statement and A Python Mystery
(
late.am
)
12 points
by
dcrosta
1554 days ago
|
hide
|
past
|
web
|
2 comments
|
favorite
comex
1554 days ago
Note also that the behavior changed in Python 3: exec is now a function, and changes to locals made through exec won't show up in the original scope.
dcrosta
1554 days ago
Thanks -- I updated the post with a note about Py3k.
Guidelines
|
FAQ
|
Support
|
API
|
Security
|
Lists
|
Bookmarklet
|
DMCA
|
Apply to YC
|
Contact
Search: