Message181301
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. |
|
Date |
User |
Action |
Args |
2013-02-03 21:24:14 | brett.cannon | set | recipients:
+ brett.cannon, pitrou |
2013-02-03 21:24:14 | brett.cannon | set | messageid: <1359926654.28.0.538884692519.issue17115@psf.upfronthosting.co.za> |
2013-02-03 21:24:14 | brett.cannon | link | issue17115 messages |
2013-02-03 21:24:14 | brett.cannon | create | |
|