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 barry, brett.cannon, eric.snow, ncoghlan
Date 2018-04-20.16:28:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1524241694.62.0.682650639539.issue33277@psf.upfronthosting.co.za>
In-reply-to
Content
-1 from me for __package__, as setting that's the preferred way for directly executed scripts to fix their explicit relative imports (rather than trying to retroactively fix their spec). (https://docs.python.org/3/library/importlib.html also doesn't say anything about __package__ being deprecated)

I'd be OK with seeing __file__/__cached__/__loader__ get deprecated, but before they went away, I'd like to see "importlib.util.get_filename()", "importlib.util.get_cache_filename()", and "importlib.util.get_loader()"  helpers added.
History
Date User Action Args
2018-04-20 16:28:14ncoghlansetrecipients: + ncoghlan, barry, brett.cannon, eric.snow
2018-04-20 16:28:14ncoghlansetmessageid: <1524241694.62.0.682650639539.issue33277@psf.upfronthosting.co.za>
2018-04-20 16:28:14ncoghlanlinkissue33277 messages
2018-04-20 16:28:14ncoghlancreate