Home
last modified time | relevance | path

Searched refs:Py_NewRef (Results 1 – 25 of 36) sorted by relevance

12

/third_party/python/Include/
Dboolobject.h34 #define Py_RETURN_TRUE return Py_NewRef(Py_True)
35 #define Py_RETURN_FALSE return Py_NewRef(Py_False)
Dobject.h575 PyAPI_FUNC(PyObject*) Py_NewRef(PyObject *obj);
595 #define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj)) macro
613 #define Py_RETURN_NONE return Py_NewRef(Py_None)
623 #define Py_RETURN_NOTIMPLEMENTED return Py_NewRef(Py_NotImplemented)
/third_party/python/Modules/_sqlite/
Dcache.c38 node->key = Py_NewRef(key); in pysqlite_new_node()
39 node->data = Py_NewRef(data); in pysqlite_new_node()
99 self->factory = Py_NewRef(factory); in pysqlite_cache_init()
258 return Py_NewRef(node->data); in pysqlite_cache_get()
Dmodule.c116 return Py_NewRef(Py_True); in pysqlite_complete_statement_impl()
118 return Py_NewRef(Py_False); in pysqlite_complete_statement_impl()
208 retval = Py_NewRef(Py_None); in pysqlite_register_converter_impl()
Dcursor.c309 converted = Py_NewRef(Py_None); in _pysqlite_fetch_one_row()
325 converted = Py_NewRef(Py_None); in _pysqlite_fetch_one_row()
444 parameters_iter = Py_NewRef(second_argument); in _pysqlite_query_execute()
492 if (PyTuple_SetItem(func_args, 0, Py_NewRef(operation)) != 0) { in _pysqlite_query_execute()
642 return Py_NewRef((PyObject *)self); in _pysqlite_query_execute()
767 return Py_NewRef((PyObject *)self); in pysqlite_cursor_executescript()
Drow.c84 self->data = Py_NewRef(data); in pysqlite_row_new_impl()
85 self->description = Py_NewRef(cursor->description); in pysqlite_row_new_impl()
Dconnection.c640 cur_py_value = Py_NewRef(Py_None); in _pysqlite_build_py_params()
923 (void*)Py_NewRef(func), in pysqlite_connection_create_function_impl()
963 (void*)Py_NewRef(aggregate_class), in pysqlite_connection_create_aggregate_impl()
1288 return Py_NewRef(self->isolation_level); in pysqlite_connection_get_isolation_level()
1588 retval = Py_NewRef(Py_None); in pysqlite_connection_interrupt_impl()
1843 return Py_NewRef(Py_None); in pysqlite_connection_create_collation_impl()
1858 return Py_NewRef((PyObject *)self); in pysqlite_connection_enter_impl()
Dmicroprotocols.c143 return Py_NewRef(alt); in pysqlite_microprotocols_adapt()
Dstatement.c83 self->sql = Py_NewRef(sql); in pysqlite_statement_create()
264 current_param = Py_NewRef(item); in pysqlite_statement_bind_parameters()
/third_party/python/Modules/
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()
D_threadmodule.c1004 return Py_NewRef(ldict); in local_getattro()
1019 return Py_NewRef(value); in local_getattro()
1042 localobject *self = (localobject *)Py_NewRef(obj); in _localdummy_destroyed()
1156 boot->func = Py_NewRef(func); in thread_PyThread_start_new_thread()
1157 boot->args = Py_NewRef(args); in thread_PyThread_start_new_thread()
Dsignalmodule.c554 set_handler(signalnum, Py_NewRef(handler)); in signal_signal_impl()
592 return Py_NewRef(old_handler); in signal_getsignal_impl()
1600 set_handler(signum, Py_NewRef(func));
D_json.c1319 return Py_NewRef(s_null); in _encoded_const()
1327 return Py_NewRef(s_true); in _encoded_const()
1335 return Py_NewRef(s_false); in _encoded_const()
Dmathmodule.c3299 factor = Py_NewRef(n); in math_perm_impl()
3421 factor = Py_NewRef(n); in math_comb_impl()
/third_party/python/Doc/c-api/
Drefcounting.rst19 :term:`strong reference` in-place. The :c:func:`Py_NewRef` function can be
34 .. c:function:: PyObject* Py_NewRef(PyObject *o)
52 self->attr = Py_NewRef(obj);
61 Similar to :c:func:`Py_NewRef`, but the object *o* can be NULL.
/third_party/python/Objects/
Dframeobject.c843 f->f_code = (PyCodeObject *)Py_NewRef(con->fc_code); in _PyFrame_New_NoTrack()
844 f->f_builtins = Py_NewRef(con->fc_builtins); in _PyFrame_New_NoTrack()
845 f->f_globals = Py_NewRef(con->fc_globals); in _PyFrame_New_NoTrack()
Ddescrobject.c135 return Py_NewRef(descr); in method_get()
159 return Py_NewRef(descr); in member_get()
179 return Py_NewRef(descr); in getset_get()
197 return Py_NewRef(descr); in wrapperdescr_get()
Dtypeobject.c240 Py_XSETREF(entry->name, Py_NewRef(Py_None)); in type_cache_clear()
264 entry->name = Py_NewRef(Py_None); in _PyType_InitCache()
2760 type->tp_bases = Py_NewRef(ctx->bases); in type_new_alloc()
2761 type->tp_base = (PyTypeObject *)Py_NewRef(ctx->base); in type_new_alloc()
2771 et->ht_name = Py_NewRef(ctx->name); in type_new_alloc()
2842 et->ht_qualname = Py_NewRef(qualname); in type_new_set_ht_name()
2851 et->ht_qualname = Py_NewRef(et->ht_name); in type_new_set_ht_name()
3277 ctx->bases = Py_NewRef(ctx->bases); in type_new_get_bases()
3340 return Py_NewRef(Py_TYPE(args[0])); in type_vectorcall()
3852 Py_SETREF(entry->name, Py_NewRef(name)); in _PyType_Lookup()
[all …]
Dobject.c2299 #undef Py_NewRef
2304 Py_NewRef(PyObject *obj) in Py_NewRef() function
/third_party/python/Python/
Dbltinmodule.c528 lz->func = Py_NewRef(func); in filter_new()
560 lz->func = Py_NewRef(args[0]); in filter_vectorcall()
1253 lz->func = Py_NewRef(func); in map_new()
1294 lz->func = Py_NewRef(args[0]); in map_vectorcall()
Dpylifecycle.c174 interp->importlib = Py_NewRef(importlib); in init_importlib()
778 interp->import_func = Py_NewRef(import_func); in pycore_init_builtins()
D_warnings.c69 modname_obj = Py_NewRef(Py_None); in create_filter()
/third_party/python/Doc/data/
Dstable_abi.dat818 function,Py_NewRef,3.10,
/third_party/python/PC/
Dpython3dll.c84 EXPORT_FUNC(Py_NewRef)
/third_party/python/Modules/_ctypes/
D_ctypes.c5774 MOD_ADD("_pointer_type_cache", Py_NewRef(_ctypes_ptrtype_cache)); in _ctypes_add_objects()
5777 MOD_ADD("COMError", Py_NewRef(ComError)); in _ctypes_add_objects()
5805 MOD_ADD("ArgumentError", Py_NewRef(PyExc_ArgError)); in _ctypes_add_objects()

12