AW: [Python-de] Verwendung von PyArg_Parse

Gerson Kurz Gerson.Kurz at t-online.de
Fri May 17 17:03:55 EDT 2002


>   if (!PyArg_Parse(pres, "i", &cstr))               /* convert to C */
>      error("Can't convert para() result");

Du benutzt alsParameterstring "i".

Auszug aus der Dokumentation:

"""
"i" (integer) [int] 
Convert a Python integer to a plain C int.

"f" (float) [float] 
Convert a Python floating point number to a C float. 

"d" (float) [double] 
Convert a Python floating point number to a C double. 
"""




More information about the Python-de mailing list