[Rpm-maint] [PATCH 08/15] Use PyBytes_ rather than PyString_ for RPM header data

Panu Matilainen pmatilai at redhat.com
Wed Oct 21 10:27:34 UTC 2009

On Thu, 15 Oct 2009, David Malcolm wrote:

> RPM header data is in binary format; use the PyBytes_ API for it,
> rather than PyString (which went away in Python 3)
> On Python 2.6, these are macro aliases for the PyString_ API
> On Python 3, these are references to the bytesobject.h class

Seems safe & sane, I went ahead and changed the whole PyString -> PyBytes 
lot in one go and provided compat macros for Python < 2.6.

 	- Panu -

More information about the Rpm-maint mailing list