table format specifiers for py_buildvalue(format python type type description ""snone string void char " #string char *int "ybytes char " #bytes char *int " " #"ustring or none string or none unicode char char *int py_unicode " #"uunicode unicode py_unicode char " #unicode char *int " " " " " " " " " " " "cinteger integer integer integer integer integer integer integer integer integer integer string char unsigned char short unsigned short int unsigned int long unsigned long long long unsigned long long py_ssize_t char " " " "ofloat float complex any float double py_complex pyobject nothing null-terminated string if the string pointer is nullnone is returned string and length may contain null bytes if the string pointer is nullnone is returned same as "sexcept byte string is returned same as "sexcept byte string is returned same as "ssame as " #null-terminated unicode string if the string pointer is nullnone is returned unicode string and length converts null-terminated string into unicode string converts string into unicode -bit integer -bit unsigned integer short -bit integer unsigned short -bit integer integer unsigned integer long integer unsigned long integer long long unsigned long long python size type single character creates python string of length single-precision floating point double-precision floating point complex number any python object the object is unchanged except for its reference countwhich is incremented by if null pointer is givena null pointer is returned this is useful if an error has been signaled elsewhere and you want it to propagate lib fl ff