[Python-3000] PyInt_ to PyLong_ rename

Thomas Wouters thomas at python.org
Tue Dec 4 17:55:58 CET 2007


On Dec 3, 2007 7:57 PM, Guido van Rossum <guido at python.org> wrote:

> On Dec 2, 2007 12:56 PM, "Martin v. Löwis" <martin at v.loewis.de> wrote:
> > > It's only used for sys.maxint. Do we still need sys.maxint and
> > > PyInt_GetMax()? IMO PyLong_GetNativeMax() and sys.maxnativelong are
> > > better names.
> >
> > I think they should go entirely. They don't give any interesting
> > information about the Python implementation.
>
> Actually it's still somewhat interesting to be able to tell whether a
> particular Python build uses 64-bit pointer or 32-bit pointers. (I
> realize sys.maxint doesn't quite tell us this, but on Linux at least
> it does.)


The removal of classic slices already added sys.maxsize, which is the max of
Py_ssize_t.

-- 
Thomas Wouters <thomas at python.org>

Hi! I'm a .signature virus! copy me into your .signature file to help me
spread!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20071204/c400e8ec/attachment.htm 


More information about the Python-3000 mailing list