[issue4591] 32-bits unsigned user/group identifier

Antoine Pitrou report at bugs.python.org
Mon Feb 11 08:33:44 CET 2013


Antoine Pitrou added the comment:

> > (perhaps we need as PyNumber_AsLongIndex() to do the direct conversion
> > to a C long, it would make things easier in many cases)
> 
> +1, but drop the 'Index' part of the name, to match the existing
> PyNumber_AsSsize_t.

There's already PyNumber_Long() (which doesn't use __index__), hence the
possible confusion.
Note there is also PyIndex_Check(), so we could call it
PyIndex_AsLong().

----------

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


More information about the Python-bugs-list mailing list