[issue6255] PyInt_FromSize_t is undocumented.

2009-06-17 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Documented in r73463.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6255
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6255] PyInt_FromSize_t is undocumented.

2009-06-10 Thread Naoki INADA

New submission from Naoki INADA songofaca...@gmail.com:

PyInt_FromSize_t() is not in Python/C API document.
People seeing document may be not able to find how to make int from 
unsigned long.

--
assignee: georg.brandl
components: Documentation
messages: 89208
nosy: georg.brandl, naoki
severity: normal
status: open
title: PyInt_FromSize_t is undocumented.
versions: Python 2.6, Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6255
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6255] PyInt_FromSize_t is undocumented.

2009-06-10 Thread Mark Dickinson

Mark Dickinson dicki...@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 rep...@bugs.python.org
http://bugs.python.org/issue6255
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6255] PyInt_FromSize_t is undocumented.

2009-06-10 Thread Naoki INADA

Naoki INADA songofaca...@gmail.com added the comment:

You're right. PyInt_FromSize_t() isn't safe for unsigned long.

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

I hope that all of py3k's PyInt_From** are in Python 2.x.
It makes maintaining extension module for both of Py2.x and Py3k a bit 
easier.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6255
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com