On Jan 27, 2011, at 3:31 PM, Per Øyvind Karlsen wrote:

>> 
>> Hint: test cases.
> How convenient, I now can just convert the existing test case with
> labelCompare()
> in python/test/test_rpm.py to use evrCompare()! ;)
> 

Another hint: See the PEP about "rich comparisons".

At one point in time the methods to use rich comparisons
between two rpmds objects (each of which would be positioned
on a single dependency) was implemented. Using rich comparisons
in bindings hides lots of the messy details juggling arrays
of {N,E,V,R,...D} tuples.

Another hysterical coincidence:
        rpm implemented PRCO containers before yum did.
It is of course an obvious solution to a similar problem.

Too bad that rpmds objects haven't been used with Python,
more FUD regarding insufficently Pythonic was the reason given
to me at the time. The reality is closer to NIH.

73 de Jeff

______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        rpm-devel@rpm5.org

Reply via email to