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 ncoghlan
Recipients Arfrever, brett.cannon, eric.araujo, georg.brandl, ncoghlan
Date 2012-07-15.05:41:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342330885.13.0.047091028897.issue15314@psf.upfronthosting.co.za>
In-reply-to
Content
Ah, __main__, thou art such a special beast.

Here's my current plan:

1. __main__ will be initialised with __loader__ set to BuiltinImporter. This covers cases like the interactive prompt or execution of stdin where there is no source code available for __main__

2. When executing a script (either directly or via runpy), __main__.__loader__ will be *changed* at a later point to refer to the appropriate kind of loader object.
History
Date User Action Args
2012-07-15 05:41:25ncoghlansetrecipients: + ncoghlan, brett.cannon, georg.brandl, eric.araujo, Arfrever
2012-07-15 05:41:25ncoghlansetmessageid: <1342330885.13.0.047091028897.issue15314@psf.upfronthosting.co.za>
2012-07-15 05:41:24ncoghlanlinkissue15314 messages
2012-07-15 05:41:24ncoghlancreate