Home
last modified time | relevance | path

Searched refs:pythonapi (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython2/Lib/ctypes/test/
Dtest_python_api.py21 PyString_FromStringAndSize = pythonapi.PyString_FromStringAndSize
29 pythonapi.PyString_FromString.restype = py_object
30 pythonapi.PyString_FromString.argtypes = (c_char_p,)
34 pyob = pythonapi.PyString_FromString(s)
46 pythonapi.PyInt_FromLong.restype = py_object
47 self.assertEqual(pythonapi.PyInt_FromLong(42), 42)
51 pythonapi.PyInt_AsLong.argtypes = (py_object,)
52 pythonapi.PyInt_AsLong.restype = c_long
54 res = pythonapi.PyInt_AsLong(42)
71 PyOS_snprintf = pythonapi.PyOS_snprintf
Dtest_values.py36 opt = c_int.in_dll(pythonapi, "Py_OptimizeFlag").value
59 ft = FrozenTable.in_dll(pythonapi, "PyImport_FrozenModules")
79 self.assertRaises(ValueError, c_int.in_dll, pythonapi,
/external/python/cpython2/Lib/test/
Dtest_ascii_formatd.py11 from ctypes import pythonapi, create_string_buffer, sizeof, byref, c_double
12 PyOS_ascii_formatd = pythonapi.PyOS_ascii_formatd
Dtest_threading.py172 set_async_exc = ctypes.pythonapi.PyThreadState_SetAsyncExc
Dtest_unicode.py1679 pythonapi, py_object, sizeof,
1686 _PyUnicode_FromFormat = getattr(pythonapi, name)
/external/python/cpython2/Lib/ctypes/
D__init__.py446 pythonapi = PyDLL("python dll", None, _sys.dllhandle) variable
448 pythonapi = PyDLL("libpython%d.%d.dll" % _sys.version_info[:2]) variable
450 pythonapi = PyDLL(None) variable
/external/libmojo/third_party/jinja2/
Ddebug.py277 if hasattr(ctypes.pythonapi, 'Py_InitModule4_64'):
/external/python/cpython2/Doc/library/
Dctypes.rst1107 the type. *pythonapi* is a predefined symbol giving access to the Python C
1110 >>> opt_flag = c_int.in_dll(pythonapi, "Py_OptimizeFlag")
1144 >>> table = FrozenTable.in_dll(pythonapi, "PyImport_FrozenModules")
1522 .. data:: pythonapi
/external/python/cpython2/Doc/whatsnew/
D2.5.rst1724 ``ctypes.pythonapi`` object. This object does *not* release the global
1732 ctypes.pythonapi.PyObject_SetItem(ctypes.py_object(d),