Objects, for loading dynamic link libraries. Loading dynamic link libraries ¶Ĭtypes exports the cdll, and on Windows windll and oledll So, you should not be confused if c_long is printed if you would expectĬ_int - they are actually the same type. Where sizeof(long) = sizeof(int) it is an alias to c_long. Note: Some code samples reference the ctypes c_int type. Windows, or macOS, they contain doctest directives in comments. Since some code samples behave differently under Linux, Note: The code samples in this tutorial use doctest to make sure that Used to wrap these libraries in pure Python. It provides C compatibleĭata types, and allows calling functions in DLLs or shared libraries. Ctypes - A foreign function library for Python ¶Ĭtypes is a foreign function library for Python.
0 Comments
Leave a Reply. |