Home
last modified time | relevance | path

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

/third_party/python/Lib/ctypes/test/
Dtest_python_api.py17 PyBytes_FromStringAndSize = pythonapi.PyBytes_FromStringAndSize
26 pythonapi.PyBytes_FromString.restype = py_object
27 pythonapi.PyBytes_FromString.argtypes = (c_char_p,)
31 pyob = pythonapi.PyBytes_FromString(s)
40 pythonapi.PyLong_FromLong.restype = py_object
41 self.assertEqual(pythonapi.PyLong_FromLong(42), 42)
45 pythonapi.PyLong_AsLong.argtypes = (py_object,)
46 pythonapi.PyLong_AsLong.restype = c_long
48 res = pythonapi.PyLong_AsLong(42)
66 PyOS_snprintf = pythonapi.PyOS_snprintf
Dtest_values.py41 opt = c_int.in_dll(pythonapi, "Py_OptimizeFlag").value
64 ft = FrozenTable.in_dll(pythonapi, f"_PyImport_Frozen{group}")
99 self.assertRaises(ValueError, c_int.in_dll, pythonapi,
/third_party/node/deps/v8/third_party/jinja2/
Ddebug.py260 ctypes.pythonapi.Py_DecRef(c_tb_next)
265 ctypes.pythonapi.Py_IncRef(c_tb_next)
/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/test/
Dtest_stable_abi_ctypes.py20 ctypes_test.pythonapi[symbol_name]
Dtest_code.py709 py = ctypes.pythonapi
Dtest_embed.py1561 func = getattr(ctypes.pythonapi, name)
1781 PyFile_NewStdPrinter = ctypes.pythonapi.PyFile_NewStdPrinter
Dtest_threading.py263 set_async_exc = ctypes.pythonapi.PyThreadState_SetAsyncExc
Dtest_bytes.py1061 from ctypes import pythonapi, py_object
1068 PyBytes_FromFormat = pythonapi.PyBytes_FromFormat
Dtest_exceptions.py416 ctypes.pythonapi.PyErr_SetFromWindowsErr(code)
/third_party/python/Lib/ctypes/
D__init__.py462 pythonapi = PyDLL("python dll", None, _sys.dllhandle) variable
464 pythonapi = PyDLL("libpython%d.%d.dll" % _sys.version_info[:2]) variable
466 pythonapi = PyDLL(None) variable
/third_party/python/Lib/test/test_capi/
Dtest_unicode.py19 pythonapi, py_object, sizeof,
23 _PyUnicode_FromFormat = getattr(pythonapi, name)
Dtest_misc.py846 self.assertTrue(hasattr(ctypes.pythonapi, name))
/third_party/node/tools/inspector_protocol/jinja2/
Ddebug.py309 if hasattr(ctypes.pythonapi, 'Py_InitModule4_64'):
/third_party/python/Doc/library/
Dctypes.rst1082 the type. *pythonapi* is a predefined symbol giving access to the Python C
1085 >>> opt_flag = c_int.in_dll(pythonapi, "Py_OptimizeFlag")
1122 >>> table = FrozenTable.in_dll(pythonapi, "_PyImport_FrozenBootstrap")
1534 .. 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.11.4.patch755 + pythonapi = PyDLL("libpython%d.%d%s.dll" % (_sys.version_info[:2] + (_sys.abiflags,)), None)
757 pythonapi = PyDLL("python dll", None, _sys.dllhandle)
759 pythonapi = PyDLL("libpython%d.%d.dll" % _sys.version_info[:2])