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 Pascal.Chambon, barry, brett.cannon, eric.snow, isoschiz, kristjan.jonsson, methane, ncoghlan, pconnell, pitrou, pje, serhiy.storchaka
Date 2014-10-09.22:13:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <54370883.1080504@free.fr>
In-reply-to <CADiSq7ePoxnNkk2wnEJj95FKYr=RFMhtMyPFTSuq49wYUYHFOg@mail.gmail.com>
Content
Le 10/10/2014 00:11, Nick Coghlan a écrit :
> 
> Nick Coghlan added the comment:
> 
> If I understand your question correctly, then yes, __package__ should be
> used when converting explicit relative imports to absolute ones.
> 
> To write a test, run a submodule that needs the new fallback feature via
> the -m switch (it will fail if using __name__)

I'm not sure it would. __package__ is not looked up on the module (since
precisely we failed importing it) but on the parent package (which is
passed to IMPORT_FROM).
History
Date User Action Args
2014-10-09 22:13:26pitrousetrecipients: + pitrou, barry, brett.cannon, pje, ncoghlan, kristjan.jonsson, methane, eric.snow, serhiy.storchaka, pconnell, isoschiz, Pascal.Chambon
2014-10-09 22:13:26pitroulinkissue17636 messages
2014-10-09 22:13:26pitroucreate