[ python-Bugs-1061920 ] "k" specifier in PyArg_ParseTuple incomplete documentated

SourceForge.net noreply at sourceforge.net
Sun Nov 7 15:28:06 CET 2004


Bugs item #1061920, was opened at 2004-11-07 14:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1061920&group_id=5470

Category: Documentation
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Gustavo J. A. M. Carneiro (gustavo)
Assigned to: Nobody/Anonymous (nobody)
Summary: "k" specifier in PyArg_ParseTuple incomplete documentated

Initial Comment:
Documentation for python 2.3 says:

"k" (integer) [unsigned long]
    Convert a Python integer to a C unsigned long
without overflow checking. New in version 2.3.

However I was told -- and tested to be true -- that "k"
also accepts python long as argument.  This should be
mentioned in the documentation, otherwise programmers
will assume "k" only accepts values in the range
0-2^31, thus not allowing the full 'unsigned long' range.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1061920&group_id=5470


More information about the Python-bugs-list mailing list