[Python-Dev] __long__ method still exists in Python 3.x

Mark Dickinson dickinsm at gmail.com
Mon Jan 12 10:20:33 CET 2009


On Sun, Jan 11, 2009 at 7:43 PM, Benjamin Peterson <benjamin at python.org> wrote:
> On Sun, Jan 11, 2009 at 12:40 PM, "Martin v. Löwis" <martin at v.loewis.de> wrote:
>> There are, apparently, still callers of the nb_long slot, so I would be
>> cautious.
>
> We should remove all usage of it and rename it to nb_reserved.

I see uses of nb_long in Object/abstract.c and Modules/_struct.c, but
no others in the core.   I think the first can be removed, and the
second changed
to nb_int.

Patch at

http://bugs.python.org/issue4910

Thanks,

Mark


More information about the Python-Dev mailing list