> 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/1803753...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to