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.

Author techtonik
Recipients benjamin.peterson, r.david.murray, techtonik
Date 2012-12-26.07:08:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356505698.18.0.47762069315.issue16781@psf.upfronthosting.co.za>
In-reply-to
Content
The workaround with the best case is a magical knowledge, which many don't possess and don't understand (I still don't get it). It's very tempting to ask why passing explicit namespace is the best solution, but instead I'd like to concentrate on this case where execfile() is not given any arguments. The documentation says:

   If both dictionaries are omitted, the expression is executed in the environment where execfile() is called.

From this description I understand that the code should be executed just like inline code. Why it can not? What limitation of Python doesn't make this possible? Is there any secret reason under cover?
History
Date User Action Args
2012-12-26 07:08:18techtoniksetrecipients: + techtonik, benjamin.peterson, r.david.murray
2012-12-26 07:08:18techtoniksetmessageid: <1356505698.18.0.47762069315.issue16781@psf.upfronthosting.co.za>
2012-12-26 07:08:18techtoniklinkissue16781 messages
2012-12-26 07:08:17techtonikcreate