This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yorkie
Recipients yorkie
Date 2019-12-26.11:14:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1577358841.1.0.469176020389.issue39138@roundup.psfhosted.org>
In-reply-to
Content
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);
```
History
Date User Action Args
2019-12-26 11:14:01yorkiesetrecipients: + yorkie
2019-12-26 11:14:01yorkiesetmessageid: <1577358841.1.0.469176020389.issue39138@roundup.psfhosted.org>
2019-12-26 11:14:01yorkielinkissue39138 messages
2019-12-26 11:14:00yorkiecreate