[ python-Bugs-1308740 ] Py_BuildValue (C/API): "K" format

SourceForge.net noreply at sourceforge.net
Thu Sep 29 22:03:40 CEST 2005


Bugs item #1308740, was opened at 2005-09-29 20:57
Message generated for change (Comment added) made by birkenfeld
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: Closed
>Resolution: Duplicate
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.

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

>Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-09-29 22:03

Message:
Logged In: YES 
user_id=1188172

Duplicate of #1281408.

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

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