Teks sumber — English
Terjemahan — Bahasa Indonesia
Python type
tipe Python
As has been mentioned before, all Python types except integers, strings, and bytes objects have to be wrapped in their corresponding :mod:`!ctypes` type, so that they can be converted to the required C data type::
Fundamental data types, when returned as foreign function call results, or, for example, by retrieving structure field members or array items, are transparently converted to native Python types. In other words, if a foreign function has a :attr:`~_CFuncPtr.restype` of :class:`c_char_p`, you will receive a Python bytes object or ``None`` for a ``NULL`` pointer, *not* a :class:`c_char_p` instance.