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 eltoder
Recipients Guido.van.Rossum, Mark.Shannon, benjamin.peterson, eltoder, gvanrossum, larry, lemburg, njs, pitrou, rhettinger, serhiy.storchaka, vstinner
Date 2015-09-01.18:20:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441131622.42.0.359792301944.issue24912@psf.upfronthosting.co.za>
In-reply-to
Content
Guido: IIUC the general intention is to support @property and __getattr__ style hooks on the module level. Assigning to sys.modules[name] from the module itself is a bit too late -- there's already a global dict for this module, and no way to create a module from an existing dict, so you end up with two global namespaces which is annoying (but admittedly people live with that). One way around that is to set up import hooks, but this is also annoying, and leaks module implementation outside of its code.
History
Date User Action Args
2015-09-01 18:20:22eltodersetrecipients: + eltoder, lemburg, gvanrossum, rhettinger, pitrou, vstinner, larry, benjamin.peterson, njs, Mark.Shannon, serhiy.storchaka, Guido.van.Rossum
2015-09-01 18:20:22eltodersetmessageid: <1441131622.42.0.359792301944.issue24912@psf.upfronthosting.co.za>
2015-09-01 18:20:22eltoderlinkissue24912 messages
2015-09-01 18:20:22eltodercreate