[issue15237] Add capsule API to _decimal

Stefan Krah report at bugs.python.org
Fri Oct 18 11:39:56 CEST 2013


Stefan Krah added the comment:

I believe you, but I'd like to understand why. :)

It seems to me that a module and also PyInit_xxx() can be loaded portably.
Say the handles to the module are cached somewhere after loading and
initializing.  I think this already happens in Python/dynload_shlib.c.

Why can't another module use a slightly modified form of _PyImport_GetDynLoadFunc()
to get any non-static function apart from PyInit_xxx() by re-using the cached
handle?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15237>
_______________________________________


More information about the Python-bugs-list mailing list