[issue6255] PyInt_FromSize_t is undocumented.

Mark Dickinson report at bugs.python.org
Wed Jun 10 22:16:40 CEST 2009


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

It seems to me that PyInt_FromSize_t() wouldn't be the right way to create a Python 
int from a C unsigned long anyway, since there's no guarantee that C's unsigned 
long and size_t have the same precision.

(I'm not disputing that PyInt_FromSize_t should be documented, by the way.)

Maybe a PyInt_FromUnsignedLong method would be useful?  It would be trivial to 
implement.

----------
nosy: +marketdickinson

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


More information about the Python-bugs-list mailing list