types.TypeTypein the Python layer..
The function accepts both string and Unicode objects as input. For Unicode objects it returns the default encoded version of the object. If length is set to NULL, the resulting buffer may not contain null characters; if it does, the function returns -1 and a TypeError is raised.
The buffer refers to an internal string buffer of obj, not a copy. The data must not be modified in any way. It must not be de-allocated.
format % args. The args argument must be a tuple.