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 pitrou
Recipients glynnc, pitrou, vinay.sajip
Date 2012-12-29.01:58:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356746299.31.0.931849820134.issue16778@psf.upfronthosting.co.za>
In-reply-to
Content
Passing a globals() instance looks hackish.
importlib uses another approach:
http://hg.python.org/cpython/file/5ef49659935f/Lib/importlib/_bootstrap.py#l303

Note that it is a pity that code objects don't have a __module__ attribute. Perhaps it would be a nice feature for 3.4.
History
Date User Action Args
2012-12-29 01:58:19pitrousetrecipients: + pitrou, vinay.sajip, glynnc
2012-12-29 01:58:19pitrousetmessageid: <1356746299.31.0.931849820134.issue16778@psf.upfronthosting.co.za>
2012-12-29 01:58:19pitroulinkissue16778 messages
2012-12-29 01:58:18pitroucreate