Searched refs:pythonapi (Results 1 – 17 of 17) sorted by relevance
| /third_party/python/Lib/ctypes/test/ |
| D | test_python_api.py | 17 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
|
| D | test_values.py | 41 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/ |
| D | debug.py | 260 ctypes.pythonapi.Py_DecRef(c_tb_next) 265 ctypes.pythonapi.Py_IncRef(c_tb_next)
|
| /third_party/skia/third_party/externals/jinja2/ |
| D | debug.py | 260 ctypes.pythonapi.Py_DecRef(c_tb_next) 265 ctypes.pythonapi.Py_IncRef(c_tb_next)
|
| /third_party/python/Lib/test/ |
| D | test_stable_abi_ctypes.py | 20 ctypes_test.pythonapi[symbol_name]
|
| D | test_code.py | 709 py = ctypes.pythonapi
|
| D | test_embed.py | 1561 func = getattr(ctypes.pythonapi, name) 1781 PyFile_NewStdPrinter = ctypes.pythonapi.PyFile_NewStdPrinter
|
| D | test_threading.py | 263 set_async_exc = ctypes.pythonapi.PyThreadState_SetAsyncExc
|
| D | test_bytes.py | 1061 from ctypes import pythonapi, py_object 1068 PyBytes_FromFormat = pythonapi.PyBytes_FromFormat
|
| D | test_exceptions.py | 416 ctypes.pythonapi.PyErr_SetFromWindowsErr(code)
|
| /third_party/python/Lib/ctypes/ |
| D | __init__.py | 462 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/ |
| D | test_unicode.py | 19 pythonapi, py_object, sizeof, 23 _PyUnicode_FromFormat = getattr(pythonapi, name)
|
| D | test_misc.py | 846 self.assertTrue(hasattr(ctypes.pythonapi, name))
|
| /third_party/node/tools/inspector_protocol/jinja2/ |
| D | debug.py | 309 if hasattr(ctypes.pythonapi, 'Py_InitModule4_64'):
|
| /third_party/python/Doc/library/ |
| D | ctypes.rst | 1082 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/ |
| D | 2.5.rst | 1725 ``ctypes.pythonapi`` object. This object does *not* release the global 1733 ctypes.pythonapi.PyObject_SetItem(ctypes.py_object(d),
|
| /third_party/python/patches/ |
| D | cpython_mingw_v3.11.4.patch | 755 + 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])
|