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 jaraco, mariocj89, ncoghlan
Date 2018-02-01.15:25:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1517498720.74.0.467229070634.issue32691@psf.upfronthosting.co.za>
In-reply-to
Content
I forget we had mod_spec.parent available to us these days, so yes, we should use that rather than recalculating the parent with str.rpartition.

As Mario noted, we only want to change the behaviour when the executed module is a plain module or submodule, rather than being a package in its own right with a pkg.__main__ submodule (since the current behaviour is correct in the latter case).
History
Date User Action Args
2018-02-01 15:25:20ncoghlansetrecipients: + ncoghlan, jaraco, mariocj89
2018-02-01 15:25:20ncoghlansetmessageid: <1517498720.74.0.467229070634.issue32691@psf.upfronthosting.co.za>
2018-02-01 15:25:20ncoghlanlinkissue32691 messages
2018-02-01 15:25:20ncoghlancreate