[Python-Dev] PyInt_AsSsize_t on x64
Kristján Valur Jónsson
kristjan at ccpgames.com
Sat May 5 13:24:26 CEST 2007
> -----Original Message-----
> From: Armin Rigo [mailto:arigo at tunes.org]
> Given that the __long__ vs __int__ difference doesn't really make sense
> any more nowadays, I'd think it would be saner to change the nb_long
> slot of old-style instances instead of PyInt_AsSsize_t(). The logic
> would be that if the nb_long slot implementation finds no "__long__"
> attribute on the instance it tries with "__int__" instead.
That sounds fine to me. I'll be happy to make the change (and revert the
change to intobject.c) if everyone concurs.
More information about the Python-Dev