Message358886
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, and supports importing them like this:
```
PyCapsule* cap = PyCapsule_New("foobar");
PyObject_SetAttrString(module1, cap->name);
PyObject_SetAttrString(module2, cap->name);
PyCapsule_Import("module1.foobar", 0);
PyCapsule_Import("module2.foobar", 0);
``` |
|
Date |
User |
Action |
Args |
2019-12-26 11:14:01 | yorkie | set | recipients:
+ yorkie |
2019-12-26 11:14:01 | yorkie | set | messageid: <1577358841.1.0.469176020389.issue39138@roundup.psfhosted.org> |
2019-12-26 11:14:01 | yorkie | link | issue39138 messages |
2019-12-26 11:14:00 | yorkie | create | |
|