Eliminate ambiguous tp_compare and tp_richcompare from rpm.ds
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 28 Oct 2009 14:27:15 +0000 (16:27 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 28 Oct 2009 14:27:15 +0000 (16:27 +0200)
commit70bebfdd7eab41d7e0aecf569692aac113958a3a
treec632e4e159b5b4f66c55ab0f553f747311eff4e9
parent46b2df7c577b3f22a167bc46e655c9c008133a66
Eliminate ambiguous tp_compare and tp_richcompare from rpm.ds
- both comparison types are highly ambiguous, eg what on earth does
  "foo provides bar = 1" < "bar requires foo > 2" mean?
- if straight ds1.evr vs ds2.evr comparison is needed, we'll be better
  off supporting that through rpm.versionCompare() which has clear semantics
- avoids another Python 3 incompatibility too
python/rpmds-py.c