[Rpm-maint] [rpm-software-management/rpm] RFE: Use Python Stable ABI for the bindings (Issue #2345)
Petr Viktorin
notifications at github.com
Thu Nov 9 12:37:46 UTC 2023
> the module, and its types, can only be initialized once per process
For reference, the Python version where this limitation can be lifted *relatively easily* is 3.10 (which adds API for type/module association, like [PyType_GetModule](https://docs.python.org/3/c-api/type.html?highlight=pytype_getmodule#c.PyType_GetModule)). Later versions make it easier still.
I know because I made [a working proof of concept](https://github.com/rpm-software-management/rpm/compare/master...encukou:rpm:python-abi3).
I will work on the CPython side to enable making this patch more elegant :)
If issues around the limitation (or reference counting, or the Python wrappers in general) come up, please let me know.
If not -- see you in 3+ years, when it's time for `_rpm` to start using Python 3.10+ API! :)
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2345#issuecomment-1803753174
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2345/1803753174 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20231109/9eea14d4/attachment.html>
More information about the Rpm-maint
mailing list