[issue32414] PyCapsule_Import fails when name is in the form 'package.module.capsule'

Serhiy Storchaka report at bugs.python.org
Thu May 17 08:42:12 EDT 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

This change would break virtually all existing usages of PyCapsule_Import(). And it would look very surprising taking into account the name of this function.

Currently "package.submodule.qual.name" imports package and accesses package.submodule.qual.name. You are out of luck if package.submodule was not imported before or if importing package doesn't import package.submodule.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32414>
_______________________________________


More information about the Python-bugs-list mailing list