[Python-Dev] Deprecate PyNumber_Long? (original) (raw)
Benjamin Peterson benjamin at python.org
Sat Jan 17 17:22:22 CET 2009
- Previous message: [Python-Dev] Deprecate PyNumber_Long?
- Next message: [Python-Dev] Problems with unicode_literals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 1/17/09, Antoine Pitrou <solipsis at pitrou.net> wrote:
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 PyNumberInt. We should keep PyNumberLong instead.
I agree with Antoine here. Using nb_int instead of nb_long is rather unfortunate, but I think it's more important to keep the C-API function names consistent.
-- Regards, Benjamin
- Previous message: [Python-Dev] Deprecate PyNumber_Long?
- Next message: [Python-Dev] Problems with unicode_literals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]