This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Py_BuildValue (C/API): "K" format
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: bigorilla, georg.brandl
Priority: normal Keywords:

Created on 2005-09-29 18:57 by bigorilla, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg26461 - (view) Author: Yair Chuchem (bigorilla) Date: 2005-09-29 18:57
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.
msg26462 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-09-29 20:03
Logged In: YES 
user_id=1188172

Duplicate of #1281408.
History
Date User Action Args
2022-04-11 14:56:13adminsetgithub: 42432
2005-09-29 18:57:28bigorillacreate