PyDocs

Nav

Generic Operating System Services

sizeof

ctypes

function
  • sizeof(obj_or_type)
Return the size in bytes of a C instance.
1 Example
>>> qsort(ia, len(ia), sizeof(c_int), cmp_func)
py_cmp_func 5 1
py_cmp_func 33 99
py_cmp_func 7 33
py_cmp_func 5 7
py_cmp_func 1 7
>>>
from the Python docs
See Also
No see-alsos for ctypes/sizeof
0 Notes
No notes for sizeof