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 martin.panter
Recipients brett.cannon, martin.panter, python-dev
Date 2015-12-05.00:19:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Thanks, the fix is fine and there is no big need to backport it. For the record, I only came across this playing with runpy. Old message:

$ python3 -m .submodule
/sbin/python3: Error while finding spec for '.submodule' (<class 'ValueError'>: '.submodule' is not a relative name (no leading dot))

New message:

$ ./python -m .submodule
/media/disk/home/proj/python/cpython/python: Error while finding spec for '.submodule' (<class 'ValueError'>: no package specified for '.submodule' (required for relative module names))
Date User Action Args
2015-12-05 00:19:14martin.pantersetrecipients: + martin.panter, brett.cannon, python-dev
2015-12-05 00:19:14martin.pantersetmessageid: <>
2015-12-05 00:19:14martin.panterlinkissue25771 messages
2015-12-05 00:19:14martin.pantercreate