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 brett.cannon
Recipients brett.cannon, pitrou
Date 2013-02-03.21:24:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1359926654.28.0.538884692519.issue17115@psf.upfronthosting.co.za>
In-reply-to
Content
It will interpret its absence as None, but I would rather get the very common case of actual module instances just setting None automatically. Not having it set when None is already an accepted default value for __package__ seems inconsistent; either the lack of attribute should signify that the value is unknown for both values, or having None should, but not both. I'm advocating for the latter as it has an easier compatibility path. Plus I'm not worrying about random objects people stash into sys.modules, just real modules created from imp.new_module()/PyModule_Create(); if you muck with sys.modules you are on your own.
History
Date User Action Args
2013-02-03 21:24:14brett.cannonsetrecipients: + brett.cannon, pitrou
2013-02-03 21:24:14brett.cannonsetmessageid: <1359926654.28.0.538884692519.issue17115@psf.upfronthosting.co.za>
2013-02-03 21:24:14brett.cannonlinkissue17115 messages
2013-02-03 21:24:14brett.cannoncreate