[Python-Dev] Deprecate PyNumber_Long? (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Sat Jan 17 13:53:25 CET 2009


Mark Dickinson <dickinsm gmail.com> writes:

Benjamin wondered aloud about deprecating PyNumberLong in the issue 4910 discussion; I suggested deprecating PyNumberInt instead, but on reflection I think Benjamin's right: it seems neater to keep the PyNumberInt <-> int() <-> nbint naming connections than the PyNumberLong <-> PyLong ones.

The C API uses the Long (rather than Int) wording, so it would be rather strange to have an outlier in PyNumber_Int. We should keep PyNumber_Long instead.



More information about the Python-Dev mailing list