[issue4910] Remove uses of nb_long slot, and rename to nb_reserved.

Mark Dickinson report at bugs.python.org
Sat Jan 17 23:31:39 CET 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

Here's a patch that deprecates PyNumber_Int in favour of PyNumber_Long:

- move PyNumber_Int definition from abstract.h to intobject.h (and
  fix up comments at the top of intobject.h)
- mark PyNumber_Int as deprecated in the c-api docs, with a promise
  to remove it for 3.1.

I suppose that in theory this goes too far:  we should really deprecate in 
3.1 and remove in 3.2.  But given all the other stuff that's going on for 
3.0.1, this doesn't seem too bad.  Benjamin, what do you think?

N.B.  We should remember to actually remove intobject.h for 3.1. :)

Added file: http://bugs.python.org/file12781/issue4910_4.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4910>
_______________________________________


More information about the Python-bugs-list mailing list