| /external/python/cpython2/Lib/ctypes/test/ |
| D | test_python_api.py | 21 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
|
| D | test_values.py | 36 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/cpython3/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 | 38 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,
|
| /external/python/cpython2/Lib/test/ |
| D | test_ascii_formatd.py | 11 from ctypes import pythonapi, create_string_buffer, sizeof, byref, c_double 12 PyOS_ascii_formatd = pythonapi.PyOS_ascii_formatd
|
| D | test_threading.py | 172 set_async_exc = ctypes.pythonapi.PyThreadState_SetAsyncExc
|
| D | test_unicode.py | 1679 pythonapi, py_object, sizeof, 1686 _PyUnicode_FromFormat = getattr(pythonapi, name)
|
| /external/python/jinja/src/jinja2/ |
| D | debug.py | 253 ctypes.pythonapi.Py_DecRef(c_tb_next) 258 ctypes.pythonapi.Py_IncRef(c_tb_next)
|
| /external/python/cpython2/Lib/ctypes/ |
| D | __init__.py | 450 pythonapi = PyDLL("python dll", None, _sys.dllhandle) variable 452 pythonapi = PyDLL("libpython%d.%d.dll" % _sys.version_info[:2]) variable 454 pythonapi = PyDLL(None) variable
|
| /external/python/cpython3/Lib/ctypes/ |
| D | __init__.py | 460 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
|
| /external/libchrome/third_party/jinja2/ |
| D | debug.py | 309 if hasattr(ctypes.pythonapi, 'Py_InitModule4_64'):
|
| /external/python/cpython3/Lib/test/ |
| D | test_code.py | 352 py = ctypes.pythonapi
|
| D | test_embed.py | 1369 func = getattr(ctypes.pythonapi, name) 1510 PyFile_NewStdPrinter = ctypes.pythonapi.PyFile_NewStdPrinter
|
| D | test_threading.py | 235 set_async_exc = ctypes.pythonapi.PyThreadState_SetAsyncExc
|
| D | test_unicode.py | 2553 pythonapi, py_object, sizeof, 2557 _PyUnicode_FromFormat = getattr(pythonapi, name)
|
| D | test_bytes.py | 1031 from ctypes import pythonapi, py_object 1038 PyBytes_FromFormat = pythonapi.PyBytes_FromFormat
|
| D | test_exceptions.py | 405 ctypes.pythonapi.PyErr_SetFromWindowsErr(code)
|
| /external/python/cpython2/Doc/library/ |
| D | ctypes.rst | 1107 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/cpython3/Doc/library/ |
| D | ctypes.rst | 1061 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
|
| /external/python/cpython3/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),
|
| /external/python/cpython2/Doc/whatsnew/ |
| D | 2.5.rst | 1724 ``ctypes.pythonapi`` object. This object does *not* release the global 1732 ctypes.pythonapi.PyObject_SetItem(ctypes.py_object(d),
|