[issue39138] import a pycapsule object that's attached on many modules

2020-01-07 Thread Yorkie Liu
Yorkie Liu added the comment: Ping Python Team. -- resolution: remind -> ___ Python tracker <https://bugs.python.org/issue39138> ___ ___ Python-bugs-list mai

[issue39138] import a pycapsule object that's attached on many modules

2019-12-26 Thread Yorkie Liu
Yorkie Liu added the comment: Update the example: ``` PyCapsule* cap = PyCapsule_New("foobar"); PyObject_SetAttrString(module1, cap->name, cap); PyObject_SetAttrString(module2, cap->name, cap); PyCapsule_Import("module1.foobar", 0); PyCapsule_

[issue39138] import a pycapsule object that's attached on many modules

2019-12-26 Thread Yorkie Liu
New submission from Yorkie Liu : Current PyCapsule's name is corresponding to the `modulename.attrname`, which requires it could be imported in the specified module. And it's possible to implement a feature which shares the same capsule object between different modules, an