[Python-Dev] Deprecate PyNumber_Long?
Brett Cannon
brett at python.org
Fri Jan 16 23:42:06 CET 2009
On Fri, Jan 16, 2009 at 13:34, Mark Dickinson <dickinsm at gmail.com> wrote:
> Now that all uses of nb_long and __long__ have disappeared from
> the 3.x codebase, would it make sense to mark PyNumber_Long
> as deprecated in the c-api documentation, and convert all existing
> uses (I count a grand total of 3 uses in the py3k branch!) to
> PyNumber_Int?
>
> (The two functions behave identically: PyNumber_Int is a macro
> that's #defined to expand to PyNumber_Long.)
Assuming we have been moving the C API usage to PyInt and not PyLong,
then yes it makes sense.
-Brett
More information about the Python-Dev
mailing list