[ python-Bugs-1308740 ] Py_BuildValue (C/API): "K" format
SourceForge.net
noreply at sourceforge.net
Thu Sep 29 20:57:29 CEST 2005
Bugs item #1308740, was opened at 2005-09-29 18:57
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=1308740&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Not a Bug
Status: Open
Resolution: None
Priority: 5
Submitted By: Yair Chuchem (bigorilla)
Assigned to: Nobody/Anonymous (nobody)
Summary: Py_BuildValue (C/API): "K" format
Initial Comment:
In section
"5.5 Parsing arguments and building values"
at the C/API documentation.
At the description of Py_BuildValue's format strings,
the "K" format char is not mentioned, though it is
implemented.
Here's a possible text to add:
"K" (integer) [unsigned PY_LONG_LONG]
Convert a C unsigned long long to a python int object.
and maybe add a
(New in version 2.3)
I don't know if it's new from 2.3 or something. I know
that for PyArg_ParseTuple it says that for "K"
Before I found that "K" is implemented out I used the
"N" format and PyLong_FromLongLong, which is far less
elegant :)
Thanks,
Yair.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1308740&group_id=5470
More information about the Python-bugs-list
mailing list