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 eric.snow, lekma, ncoghlan, petr.viktorin, serhiy.storchaka, skrah
Date 2018-05-17.11:48:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526557683.21.0.682650639539.issue32414@psf.upfronthosting.co.za>
In-reply-to
Content
The behaviour I'd expect to see:

"module:qual.name" -> "imports module, accesses module.qual.name"
"module.qual.name" -> "no implicit import, accesses module.qual.name"
"package.submodule:qual.name" -> "imports package.submodule, accesses package.submodule.qual.name"
"package.submodule.qual.name" -> "no implicit import, accesses package.submodule.qual.name"

So if you have ":" in the capsule path, you're requesting that the interpreter execute an import with the path up to that point before attempting to resolve the full name reference.

By contrast, if you omit the ":", you're telling the interpreter that you'll take care of ensuring that any required imports have taken place before attempting to resolve the capsule reference.
History
Date User Action Args
2018-05-17 11:48:03ncoghlansetrecipients: + ncoghlan, petr.viktorin, lekma, skrah, eric.snow, serhiy.storchaka
2018-05-17 11:48:03ncoghlansetmessageid: <1526557683.21.0.682650639539.issue32414@psf.upfronthosting.co.za>
2018-05-17 11:48:03ncoghlanlinkissue32414 messages
2018-05-17 11:48:03ncoghlancreate