Home
last modified time | relevance | path

Searched refs:_PyObject_CallMethodId (Results 1 – 25 of 40) sorted by relevance

12

/external/python/cpython3/Modules/_io/
Dtextio.c587 return _PyObject_CallMethodId(self->decoder, in _io_IncrementalNewlineDecoder_setstate()
865 res = _PyObject_CallMethodId(self->buffer, &PyId_readable, NULL); in _textiowrapper_set_decoder()
920 res = _PyObject_CallMethodId(self->buffer, &PyId_writable, NULL); in _textiowrapper_set_encoder()
1086 fileno = _PyObject_CallMethodId(buffer, &PyId_fileno, NULL); in _io_TextIOWrapper___init___impl()
1201 res = _PyObject_CallMethodId(buffer, &PyId_seekable, NULL); in _io_TextIOWrapper___init___impl()
1601 PyObject *newtext = _PyObject_CallMethodId( in _io_TextIOWrapper_write_impl()
1690 ret = _PyObject_CallMethodId(self->decoder, &PyId_reset, NULL); in _io_TextIOWrapper_write_impl()
1895 PyObject *bytes = _PyObject_CallMethodId(self->buffer, &PyId_read, NULL); in _io_TextIOWrapper_read_impl()
2358 res = _PyObject_CallMethodId(self->decoder, &PyId_setstate, in _textiowrapper_decoder_setstate()
2436 cookieObj = _PyObject_CallMethodId((PyObject *)self, &PyId_tell, NULL); in _io_TextIOWrapper_seek_impl()
[all …]
Diobase.c118 return _PyObject_CallMethodId(self, &PyId_seek, "ii", 0, 1); in _io__IOBase_tell_impl()
600 b = _PyObject_CallMethodId(self, &PyId_read, "n", nreadahead); in _io__IOBase_readline_impl()
924 return _PyObject_CallMethodId(self, &PyId_readall, NULL); in _io__RawIOBase_read_impl()
970 PyObject *data = _PyObject_CallMethodId(self, &PyId_read, in _io__RawIOBase_readall_impl()
D_iomodule.c403 PyObject *res = _PyObject_CallMethodId(raw, &PyId_isatty, NULL); in _io_open_impl()
497 close_result = _PyObject_CallMethodId(result, &PyId_close, NULL); in _io_open_impl()
/external/python/cpython3/Objects/
Dfileobject.c41 stream = _PyObject_CallMethodId(io, &PyId_open, "isisssi", fd, mode, in PyFile_FromFd()
67 result = _PyObject_CallMethodId(f, &PyId_readline, "i", n); in PyFile_GetLine()
564 f = _PyObject_CallMethodId(iomod, &PyId_open, "Os", in PyFile_OpenCodeObject()
Ddescrobject.c1027 return _PyObject_CallMethodId(pp->mapping, &PyId_keys, NULL); in mappingproxy_keys()
1034 return _PyObject_CallMethodId(pp->mapping, &PyId_values, NULL); in mappingproxy_values()
1041 return _PyObject_CallMethodId(pp->mapping, &PyId_items, NULL); in mappingproxy_items()
1048 return _PyObject_CallMethodId(pp->mapping, &PyId_copy, NULL); in mappingproxy_copy()
Dweakrefobject.c481 PyObject* res = _PyObject_CallMethodId(proxy, &PyId_##special, NULL); \
/external/python/cpython3/Python/
Dtraceback.c356 binary = _PyObject_CallMethodId(io, &PyId_open, "ss", namebuf, "rb"); in _Py_FindSourceFile()
396 binary = _PyObject_CallMethodId(io, &PyId_open, "Os", filename, "rb"); in _Py_DisplaySourceLine()
426 fob = _PyObject_CallMethodId(io, &PyId_TextIOWrapper, "Os", binary, encoding); in _Py_DisplaySourceLine()
433 res = _PyObject_CallMethodId(binary, &PyId_close, NULL); in _Py_DisplaySourceLine()
453 res = _PyObject_CallMethodId(fob, &PyId_close, NULL); in _Py_DisplaySourceLine()
Dpylifecycle.c1117 tmp = _PyObject_CallMethodId(fout, &PyId_flush, NULL); in flush_std_files()
1127 tmp = _PyObject_CallMethodId(ferr, &PyId_flush, NULL); in flush_std_files()
1743 buf = _PyObject_CallMethodId(io, &PyId_open, "isiOOOi", in create_stdio()
1770 res = _PyObject_CallMethodId(raw, &PyId_isatty, NULL); in create_stdio()
1813 stream = _PyObject_CallMethodId(io, &PyId_TextIOWrapper, "OOOsOO", in create_stdio()
2034 res = _PyObject_CallMethodId(ferr, &PyId_flush, NULL); in _Py_FatalError_PrintExc()
2257 result = _PyObject_CallMethodId(threading, &PyId__shutdown, NULL); in wait_for_thread_shutdown()
Dimportdl.c76 modname = _PyObject_CallMethodId(encoded, &PyId_replace, "cc", '-', '_'); in get_encoded_name()
Dbltinmodule.c1893 tmp = _PyObject_CallMethodId(file, &PyId_flush, NULL); in builtin_print()
1963 tmp = _PyObject_CallMethodId(ferr, &PyId_flush, NULL); in builtin_input_impl()
1972 tmp = _PyObject_CallMethodId(fin, &PyId_fileno, NULL); in builtin_input_impl()
1985 tmp = _PyObject_CallMethodId(fout, &PyId_fileno, NULL); in builtin_input_impl()
2023 tmp = _PyObject_CallMethodId(fout, &PyId_flush, NULL); in builtin_input_impl()
2118 tmp = _PyObject_CallMethodId(fout, &PyId_flush, NULL); in builtin_input_impl()
Dpythonrun.c989 PyObject *res = _PyObject_CallMethodId(file, &PyId_flush, NULL); in _PyErr_Display()
1083 r = _PyObject_CallMethodId(f, &PyId_flush, NULL); in flush_io()
1091 r = _PyObject_CallMethodId(f, &PyId_flush, NULL); in flush_io()
Dmarshal.c698 res = _PyObject_CallMethodId(p->readable, &PyId_readinto, "N", mview); in r_string()
1693 data = _PyObject_CallMethodId(file, &PyId_read, "i", 0); in marshal_load()
/external/python/cpython3/Modules/
D_bisectmodule.c109 result = _PyObject_CallMethodId(list, &PyId_insert, "nO", index, item); in insort_right()
224 result = _PyObject_CallMethodId(list, &PyId_insert, "nO", index, item); in insort_left()
D_posixsubprocess.c63 result = _PyObject_CallMethodId(gc_module, &PyId_enable, NULL); in _enable_gc()
611 result = _PyObject_CallMethodId(gc_module, &PyId_isenabled, NULL); in subprocess_fork_exec()
622 result = _PyObject_CallMethodId(gc_module, &PyId_disable, NULL); in subprocess_fork_exec()
Dfaulthandler.c175 result = _PyObject_CallMethodId(file, &PyId_fileno, NULL); in faulthandler_get_fileno()
193 result = _PyObject_CallMethodId(file, &PyId_flush, NULL); in faulthandler_get_fileno()
1315 PyObject *res = _PyObject_CallMethodId(module, &PyId_enable, NULL); in faulthandler_init_enable()
D_asynciomodule.c337 loop = _PyObject_CallMethodId(policy, &PyId_get_event_loop, NULL); in get_event_loop()
498 res = _PyObject_CallMethodId(fut->fut_loop, &PyId_get_debug, NULL); in future_init()
2221 res = _PyObject_CallMethodId( in _asyncio_Task_cancel_impl()
2759 r = _PyObject_CallMethodId(result, &PyId_cancel, NULL); in task_step_impl()
2850 r = _PyObject_CallMethodId(result, &PyId_cancel, NULL); in task_step_impl()
D_dbmmodule.c373 return _PyObject_CallMethodId(self, &PyId_close, NULL); in dbm__exit__()
D_gdbmmodule.c500 return _PyObject_CallMethodId(self, &PyId_close, NULL); in dbm__exit__()
D_datetimemodule.c1448 Zreplacement = _PyObject_CallMethodId(temp, &PyId_replace, "ss", "%", "%%"); in make_Zreplacement()
1667 result = _PyObject_CallMethodId(time, &PyId_time, NULL); in time_time()
1926 ratio = _PyObject_CallMethodId(floatobj, &PyId_as_integer_ratio, NULL); in get_float_as_integer_ratio()
3170 return _PyObject_CallMethodId((PyObject *)self, &PyId_isoformat, NULL); in date_str()
3196 tuple = _PyObject_CallMethodId((PyObject *)self, &PyId_timetuple, NULL); in date_strftime()
4179 return _PyObject_CallMethodId((PyObject *)self, &PyId_isoformat, NULL); in time_str()
4966 self = _PyObject_CallMethodId(tz, &PyId_fromutc, "N", self); in datetime_datetime_now_impl()
5002 self = _PyObject_CallMethodId(tzinfo, &PyId_fromutc, "N", self); in datetime_fromtimestamp()
5410 return _PyObject_CallMethodId((PyObject *)self, &PyId_isoformat, "s", " "); in datetime_str()
Dossaudiodev.c542 PyObject *ret = _PyObject_CallMethodId(self, &PyId_close, NULL); in oss_exit()
/external/python/cpython3/Include/cpython/
Dabstract.h12 # define _PyObject_CallMethodId _PyObject_CallMethodId_SizeT macro
170 PyAPI_FUNC(PyObject *) _PyObject_CallMethodId(PyObject *obj,
/external/python/cpython3/Modules/_sqlite/
Dconnection.c712 function_result = _PyObject_CallMethodId(*aggregate_instance, &PyId_finalize, NULL); in _pysqlite_final_callback()
1285 cursor = _PyObject_CallMethodId((PyObject*)self, &PyId_cursor, NULL); in pysqlite_connection_execute()
1314 cursor = _PyObject_CallMethodId((PyObject*)self, &PyId_cursor, NULL); in pysqlite_connection_executemany()
1343 cursor = _PyObject_CallMethodId((PyObject*)self, &PyId_cursor, NULL); in pysqlite_connection_executescript()
Dmodule.c206 name = _PyObject_CallMethodId(orig_name, &PyId_upper, NULL); in module_register_converter()
Dcursor.c109 upcase_key = _PyObject_CallMethodId(key, &PyId_upper, NULL); in _pysqlite_get_converter()
/external/python/cpython3/PC/
D_msi.c127 PyObject *result = _PyObject_CallMethodId(pv, &PyId_status, "iii", typeStatus, cb1, cb2); in FNFCISTATUS()
140 PyObject *result = _PyObject_CallMethodId(pv, &PyId_getnextcabinet, "i", pccab->iCab); in FNFCIGETNEXTCABINET()

12