[Rpm-maint] [PATCH 07/15] Use macros to hide "int" implementation differences between Python 2 and 3

Panu Matilainen pmatilai at redhat.com
Mon Oct 19 14:09:38 UTC 2009

On Thu, 15 Oct 2009, David Malcolm wrote:

> On Python 3, use macros to alias all usage of PyInt_ to PyLong_ equivalents,
> as the former no longer exists.

Right, simply aliasing to PyLong is probably quite ok.

> Likewise, the "cmpfunc" typedef no longer exists; introduce a dummy definition
> to enable our code to compile

...but this is not really :) We'll need to convert the tp_compare cases to 
tp_richcompare, AFAICT Python handles this compatibly in 2.x so it 
shouldn't be a big deal.

 	- Panu -

More information about the Rpm-maint mailing list