• ctypes的目的是作为一个先进的外国接口功能或ffi包Python2.3和高。 在Python2.5它已经包括在内。

    ctypes允许你打电话的功能在dll/公共图书馆和具有广泛的设施,创造、取用和操作简单和复杂C中的数据类型Python-换句话说:包图书馆在纯粹的蟒蛇。

    它甚至有可能实现C回呼功能在纯粹的蟒蛇。

  • ctypes डिजाइन किया गया था के रूप में एक उन्नत विदेशी समारोह इंटरफ़ेस या एफएफआई के लिए पैकेज Python 2.3 और उच्चतर. अजगर में 2.5 यह पहले से ही शामिल है.

    ctypes की अनुमति देता है आप कॉल करने के लिए कार्यों में dlls/साझा पुस्तकालयों और व्यापक सुविधाएं बनाने के लिए, का उपयोग और हेरफेर सरल और जटिल C के लिए डेटा प्रकार में अजगर - दूसरे शब्दों में: लपेटो पुस्तकालयों में शुद्ध अजगर है ।

    यह भी संभव है को लागू करने के लिए C कॉलबैक कार्यों में शुद्ध अजगर है ।

  • ctypes was designed as an advanced Foreign Function Interface or ffi package for Python 2.3 and higher. In Python 2.5 it is already included.

    ctypes allows you to call functions in dlls/shared libraries and has extensive facilities to create, access and manipulate simple and complicated C data types in Python - in other words: wrap libraries in pure Python.

    It is even possible to implement C callback functions in pure Python.