/third_party/python/Include/ |
D | boolobject.h | 34 #define Py_RETURN_TRUE return Py_NewRef(Py_True) 35 #define Py_RETURN_FALSE return Py_NewRef(Py_False)
|
D | object.h | 575 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/ |
D | cache.c | 38 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()
|
D | module.c | 116 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()
|
D | cursor.c | 309 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()
|
D | row.c | 84 self->data = Py_NewRef(data); in pysqlite_row_new_impl() 85 self->description = Py_NewRef(cursor->description); in pysqlite_row_new_impl()
|
D | connection.c | 640 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()
|
D | microprotocols.c | 143 return Py_NewRef(alt); in pysqlite_microprotocols_adapt()
|
D | statement.c | 83 self->sql = Py_NewRef(sql); in pysqlite_statement_create() 264 current_param = Py_NewRef(item); in pysqlite_statement_bind_parameters()
|
/third_party/python/Modules/ |
D | atexitmodule.c | 97 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.c | 1004 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()
|
D | signalmodule.c | 554 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.c | 1319 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()
|
D | mathmodule.c | 3299 factor = Py_NewRef(n); in math_perm_impl() 3421 factor = Py_NewRef(n); in math_comb_impl()
|
/third_party/python/Doc/c-api/ |
D | refcounting.rst | 19 :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/ |
D | frameobject.c | 843 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()
|
D | descrobject.c | 135 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()
|
D | typeobject.c | 240 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 …]
|
D | object.c | 2299 #undef Py_NewRef 2304 Py_NewRef(PyObject *obj) in Py_NewRef() function
|
/third_party/python/Python/ |
D | bltinmodule.c | 528 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()
|
D | pylifecycle.c | 174 interp->importlib = Py_NewRef(importlib); in init_importlib() 778 interp->import_func = Py_NewRef(import_func); in pycore_init_builtins()
|
D | _warnings.c | 69 modname_obj = Py_NewRef(Py_None); in create_filter()
|
/third_party/python/Doc/data/ |
D | stable_abi.dat | 818 function,Py_NewRef,3.10,
|
/third_party/python/PC/ |
D | python3dll.c | 84 EXPORT_FUNC(Py_NewRef)
|
/third_party/python/Modules/_ctypes/ |
D | _ctypes.c | 5774 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()
|