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

Yorkie Liu report at bugs.python.org
Thu Dec 26 06:25:05 EST 2019


Yorkie Liu <yorkiefixer at gmail.com> 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_Import("module2.foobar", 0);
```

----------
resolution:  -> remind

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


More information about the Python-bugs-list mailing list