[Python-Dev] Removing tp_compare?

Bill Janssen janssen at parc.com
Sat Jan 31 23:06:48 CET 2009


Antoine Pitrou <solipsis at pitrou.net> wrote:

> Martin v. Löwis <martin <at> v.loewis.de> writes:
> > 
> > > Any thoughts?  My own opinion is that it really doesn't matter
> > > that much if the slot is left in;  it's just a little annoying to have
> > > such backwards-compatibility baggage already present in
> > > the shiny new 3.0 series.  A little like finding a big scratch
> > > on your brand-new bright yellow Hummer H3.  Or not.
> > 
> > Well, there is also PY_SSIZE_T_CLEAN. I asked before 3.0, and was told
> > that it was too late to remove it.
> 
> Are all modules PY_SSIZE_T_CLEAN? Last I looked, _ssl.c still used int or long
> in various places instead of Py_ssize_t.

_ssl.c does indeed use int or long in various places.  I'm not sure how
far it can go with Py_ssize_t -- is OpenSSL 64-bit clean?

Bill


More information about the Python-Dev mailing list