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 martin.panter
Date 2015-12-01.05:31:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
>>> import importlib.util
>>> importlib.util.resolve_name(".submodule", None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/proj/python/cpython/Lib/importlib/", line 26, in resolve_name
    '(no leading dot)'.format(name))
ValueError: '.submodule' is not a relative name (no leading dot)

This message sounds like nonsense. Perhaps the it should say something like:

    '.submodule' should be an absolute name (no leading dot)


    relative import of '.submodule' not allowed outside of a package
Date User Action Args
2015-12-01 05:31:34martin.pantersetrecipients: + martin.panter
2015-12-01 05:31:34martin.pantersetmessageid: <>
2015-12-01 05:31:34martin.panterlinkissue25771 messages
2015-12-01 05:31:33martin.pantercreate