Home
last modified time | relevance | path

Searched refs:Py_NewRef (Results 1 - 25 of 50) sorted by relevance

12

/third_party/python/Include/
H A Dboolobject.h34 #define Py_RETURN_TRUE return Py_NewRef(Py_True)
35 #define Py_RETURN_FALSE return Py_NewRef(Py_False)
H A Dobject.h611 PyAPI_FUNC(PyObject*) Py_NewRef(PyObject *obj);
613 // Similar to Py_NewRef(), but the object can be NULL.
628 // Py_NewRef() and Py_XNewRef() are exported as functions for the stable ABI.
632 # define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj)) macro
635 # define Py_NewRef(obj) _Py_NewRef(obj) macro
654 #define Py_RETURN_NONE return Py_NewRef(Py_None)
664 #define Py_RETURN_NOTIMPLEMENTED return Py_NewRef(Py_NotImplemented)
/third_party/python/Modules/
H A Datexitmodule.c97 PyObject* the_func = Py_NewRef(cb->func); in atexit_callfuncs()
175 callback->func = Py_NewRef(func); in atexit_register()
180 return Py_NewRef(func); in atexit_register()
H A D_threadmodule.c1001 return Py_NewRef(ldict); in local_getattro()
1016 return Py_NewRef(value); in local_getattro()
1039 localobject *self = (localobject *)Py_NewRef(obj); in _localdummy_destroyed()
1158 boot->func = Py_NewRef(func); in thread_PyThread_start_new_thread()
1159 boot->args = Py_NewRef(args); in thread_PyThread_start_new_thread()
H A Dsignalmodule.c580 set_handler(signalnum, Py_NewRef(handler)); in signal_signal_impl()
618 return Py_NewRef(old_handler); in signal_getsignal_impl()
1633 set_handler(signum, Py_NewRef(func));
H A D_testclinic.c43 PyTuple_SET_ITEM(tuple, i, Py_NewRef(arg)); in pack_arguments_newref()
/third_party/python/Python/
H A Dthread.c219 value = Py_NewRef(Py_None); in PyThread_GetInfo()
231 value = Py_NewRef(Py_None); in PyThread_GetInfo()
H A Dframe.c110 f->f_back = (PyFrameObject *)Py_NewRef(back); in take_ownership()
H A Dceval.c2683 PyObject *exc = Py_NewRef(PyExceptionInstance_Class(val));
2715 PyObject *exc = Py_NewRef(PyExceptionInstance_Class(val));
2831 SET_TOP(Py_NewRef(PyTuple_GET_ITEM(seq, 1)));
2832 PUSH(Py_NewRef(PyTuple_GET_ITEM(seq, 0)));
2846 PUSH(Py_NewRef(items[oparg]));
2861 PUSH(Py_NewRef(items[oparg]));
3925 PyErr_SetExcInfo(NULL, Py_NewRef(match), NULL);
3942 PUSH(Py_NewRef(res ? Py_True : Py_False));
4927 PyObject *res = Py_NewRef(Py_TYPE(obj));
6181 u = Py_NewRef(
[all...]
H A Dbltinmodule.c517 lz->func = Py_NewRef(func); in filter_new()
549 lz->func = Py_NewRef(args[0]); in filter_vectorcall()
1277 lz->func = Py_NewRef(func); in map_new()
1318 lz->func = Py_NewRef(args[0]); in map_vectorcall()
/third_party/python/Modules/_sqlite/
H A Drow.c87 self->data = Py_NewRef(data); in pysqlite_row_new_impl()
88 self->description = Py_NewRef(cursor->description); in pysqlite_row_new_impl()
H A Dmicroprotocols.c139 return Py_NewRef(alt); in pysqlite_microprotocols_adapt()
H A Dcursor.c368 converted = Py_NewRef(Py_None); in _pysqlite_fetch_one_row()
384 converted = Py_NewRef(Py_None); in _pysqlite_fetch_one_row()
671 current_param = Py_NewRef(item); in bind_parameters()
799 parameters_iter = Py_NewRef(second_argument); in _pysqlite_query_execute()
986 return Py_NewRef((PyObject *)self); in _pysqlite_query_execute()
1094 return Py_NewRef((PyObject *)self); in pysqlite_cursor_executescript_impl()
H A Dmodule.c98 return Py_NewRef(Py_True); in pysqlite_complete_statement_impl()
100 return Py_NewRef(Py_False); in pysqlite_complete_statement_impl()
198 retval = Py_NewRef(Py_None); in pysqlite_register_converter_impl()
H A Dconnection.c254 self->row_factory = Py_NewRef(Py_None); in pysqlite_connection_init_impl()
255 self->text_factory = Py_NewRef(&PyUnicode_Type); in pysqlite_connection_init_impl()
464 obj->connection = (pysqlite_Connection *)Py_NewRef(self); in blobopen_impl()
721 cur_py_value = Py_NewRef(Py_None); in _pysqlite_build_py_params()
947 ctx->callable = Py_NewRef(callable); in create_callback_context()
948 ctx->module = Py_NewRef(module); in create_callback_context()
1849 retval = Py_NewRef(Py_None); in pysqlite_connection_interrupt_impl()
2209 return Py_NewRef((PyObject *)self); in pysqlite_connection_enter_impl()
H A Dblob.c350 return Py_NewRef(self); in blob_enter_impl()
/third_party/python/Include/internal/
H A Dpycore_long.h78 return Py_NewRef((PyObject *)&_PyLong_SMALL_INTS[_PY_NSMALLNEGINTS+i]); in _PyLong_FromUnsignedChar()
H A Dpycore_frame.h107 frame->f_code = (PyCodeObject *)Py_NewRef(func->func_code); in _PyFrame_InitializeSpecials()
/third_party/python/Objects/
H A Dboolobject.c13 return Py_NewRef(res); in bool_repr()
H A Dexceptions.c804 self->msg = Py_NewRef(message); in BaseExceptionGroup_new()
1087 result->match = Py_NewRef(exc); in exceptiongroup_split_recursive()
1093 result->rest = Py_NewRef(exc); in exceptiongroup_split_recursive()
1232 PyObject *result = Py_NewRef( in BaseExceptionGroup_subgroup()
1317 split_result.match : Py_NewRef(Py_None); in exception_group_projection()
1362 return Py_NewRef(Py_None); in _PyExc_PrepReraiseStar()
1374 return Py_NewRef(e); in _PyExc_PrepReraiseStar()
1430 result = Py_NewRef(PyList_GetItem(raised_list, 0)); in _PyExc_PrepReraiseStar()
H A Dfuncobject.c701 Py_SETREF(op->func_name, Py_NewRef(&_Py_STR(empty))); in func_clear()
702 Py_SETREF(op->func_qualname, Py_NewRef(&_Py_STR(empty))); in func_clear()
H A Ddescrobject.c152 return Py_NewRef(descr); in method_get()
176 return Py_NewRef(descr); in member_get()
196 return Py_NewRef(descr); in getset_get()
215 return Py_NewRef(descr); in wrapperdescr_get()
H A Dtypeobject.c234 entry->name = Py_NewRef(Py_None); in _PyType_InitCache()
785 type->tp_bases = Py_NewRef(new_bases); in type_set_bases()
786 type->tp_base = (PyTypeObject *)Py_NewRef(new_base); in type_set_bases()
2772 type->tp_bases = Py_NewRef(ctx->bases); in type_new_alloc()
2773 type->tp_base = (PyTypeObject *)Py_NewRef(ctx->base); in type_new_alloc()
2783 et->ht_name = Py_NewRef(ctx->name); in type_new_alloc()
2855 et->ht_qualname = Py_NewRef(qualname); in type_new_set_ht_name()
2864 et->ht_qualname = Py_NewRef(et->ht_name); in type_new_set_ht_name()
3284 ctx->bases = Py_NewRef(ctx->bases); in type_new_get_bases()
3347 return Py_NewRef(Py_TYP in type_vectorcall()
[all...]
H A Dobject.c1202 *method = Py_NewRef(attr); in _PyObject_GetMethod()
2424 #undef Py_NewRef macro
2427 // Export Py_NewRef() and Py_XNewRef() as regular functions for the stable ABI.
2429 Py_NewRef(PyObject *obj) in Py_NewRef() function
/third_party/python/Modules/_io/
H A Dtextio.c236 errors = Py_NewRef(&_Py_ID(strict)); in _io_IncrementalNewlineDecoder___init___impl()
239 errors = Py_NewRef(errors); in _io_IncrementalNewlineDecoder___init___impl()
243 Py_XSETREF(self->decoder, Py_NewRef(decoder)); in _io_IncrementalNewlineDecoder___init___impl()
1124 self->encoding = Py_NewRef(&_Py_STR(utf_8)); in _io_TextIOWrapper___init___impl()
2257 line = Py_NewRef(&_Py_STR(empty)); in _textiowrapper_readline()

Completed in 51 milliseconds

12