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-13.18:15:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1413224132.44.0.0384273331688.issue17636@psf.upfronthosting.co.za>
In-reply-to
Content
Actually, looking up __package__ would be wrong.

Say I have: from pack.module import foo

and "foo" doesn't exist in pack.module but exists in pack.
Since pack.module.__package__ == "pack", using __package__ would wrongly find the "foo" in pack.
History
Date User Action Args
2014-10-13 18:15:32pitrousetrecipients: + pitrou, barry, brett.cannon, pje, ncoghlan, kristjan.jonsson, methane, eric.snow, serhiy.storchaka, pconnell, isoschiz, Pascal.Chambon
2014-10-13 18:15:32pitrousetmessageid: <1413224132.44.0.0384273331688.issue17636@psf.upfronthosting.co.za>
2014-10-13 18:15:32pitroulinkissue17636 messages
2014-10-13 18:15:32pitroucreate