Home
last modified time | relevance | path

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

/third_party/python/Lib/ctypes/test/
Dtest_python_api.py21 PyBytes_FromStringAndSize = pythonapi.PyBytes_FromStringAndSize
30 pythonapi.PyBytes_FromString.restype = py_object
31 pythonapi.PyBytes_FromString.argtypes = (c_char_p,)
35 pyob = pythonapi.PyBytes_FromString(s)
44 pythonapi.PyLong_FromLong.restype = py_object
45 self.assertEqual(pythonapi.PyLong_FromLong(42), 42)
49 pythonapi.PyLong_AsLong.argtypes = (py_object,)
50 pythonapi.PyLong_AsLong.restype = c_long
52 res = pythonapi.PyLong_AsLong(42)
70 PyOS_snprintf = pythonapi.PyOS_snprintf
Dtest_values.py38 opt = c_int.in_dll(pythonapi, "Py_OptimizeFlag").value
56 ft = FrozenTable.in_dll(pythonapi, "PyImport_FrozenModules")
97 self.assertRaises(ValueError, c_int.in_dll, pythonapi,
/third_party/skia/third_party/externals/jinja2/
Ddebug.py260 ctypes.pythonapi.Py_DecRef(c_tb_next)
265 ctypes.pythonapi.Py_IncRef(c_tb_next)
/third_party/python/Lib/ctypes/
D__init__.py460 pythonapi = PyDLL("python dll", None, _sys.dllhandle) variable
462 pythonapi = PyDLL("libpython%d.%d.dll" % _sys.version_info[:2]) variable
464 pythonapi = PyDLL(None) variable
/third_party/node/tools/inspector_protocol/jinja2/
Ddebug.py309 if hasattr(ctypes.pythonapi, 'Py_InitModule4_64'):
/third_party/python/Lib/test/
Dtest_code.py352 py = ctypes.pythonapi
Dtest_embed.py1369 func = getattr(ctypes.pythonapi, name)
1510 PyFile_NewStdPrinter = ctypes.pythonapi.PyFile_NewStdPrinter
Dtest_threading.py235 set_async_exc = ctypes.pythonapi.PyThreadState_SetAsyncExc
Dtest_unicode.py2553 pythonapi, py_object, sizeof,
2557 _PyUnicode_FromFormat = getattr(pythonapi, name)
Dtest_bytes.py1031 from ctypes import pythonapi, py_object
1038 PyBytes_FromFormat = pythonapi.PyBytes_FromFormat
Dtest_exceptions.py399 ctypes.pythonapi.PyErr_SetFromWindowsErr(code)
/third_party/python/Doc/library/
Dctypes.rst1061 the type. *pythonapi* is a predefined symbol giving access to the Python C
1064 >>> opt_flag = c_int.in_dll(pythonapi, "Py_OptimizeFlag")
1099 >>> table = FrozenTable.in_dll(pythonapi, "PyImport_FrozenModules")
1517 .. data:: pythonapi
/third_party/python/Doc/whatsnew/
D2.5.rst1725 ``ctypes.pythonapi`` object. This object does *not* release the global
1733 ctypes.pythonapi.PyObject_SetItem(ctypes.py_object(d),
/third_party/python/patches/
Dcpython_mingw_v3.10.2.patch630 + pythonapi = PyDLL("libpython%d.%d%s.dll" % (_sys.version_info[:2] + (_sys.abiflags,)), None)
632 pythonapi = PyDLL("python dll", None, _sys.dllhandle)
634 pythonapi = PyDLL("libpython%d.%d.dll" % _sys.version_info[:2])