[Rpm-maint] [rpm-software-management/rpm] Improved python support: enums are now enums with all additional goodies. (#1309)

KOLANICH notifications at github.com
Tue Aug 4 15:40:54 UTC 2020

1. What clutters the namespace is the enums values generated by swig, because they are not really python enums and they are not namespaced. IDK if we can just break compatibility and get rid of them. The proposed solution is to setup swig to place them into a separate module (is it possible?), and then import that module and convert it, and not explicitly expose it.

2. in some places, where we don't directly interface the cext, we can, by just wrapping the returned values into the enum ctor

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200804/9ff47a2f/attachment.html>

More information about the Rpm-maint mailing list