Results of 1 - 10 of about 26 for NewRef (0.014 sec.)
- 2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 12629
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s
...kwds , "|OOi" , kwlist , & first , & last , & self -> number )) return -1 ; if ( first ) { Py_XSETREF ( self -> first , Py_NewRef ( first )); } if ( last ) { Py_XSETREF ( self -> last , Py_NewRef ( last )); } return 0 ; } static PyMemberDef Custom_memb...kwds , "|UUi" , kwlist , & first , & last , & self -> number )) return -1 ; if ( first ) { Py_SETREF ( self -> first , Py_NewRef ( first )); } if ( last ) { Py_SETREF ( self -> last , Py_NewRef ( last )); } return 0 ; } static PyMemberDef Custom_membe...ic PyObject * Custom_getfirst ( PyObject * op , void * closure ) { CustomObject * self = ( CustomObject * ) op ; return Py_NewRef ( self -> first ); } static int Custom_setfirst ( PyObject * op , PyObject * value , void * closure ) { CustomObject * sel... - https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
- 2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 12629
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s
...kwds , "|OOi" , kwlist , & first , & last , & self -> number )) return -1 ; if ( first ) { Py_XSETREF ( self -> first , Py_NewRef ( first )); } if ( last ) { Py_XSETREF ( self -> last , Py_NewRef ( last )); } return 0 ; } static PyMemberDef Custom_memb...kwds , "|UUi" , kwlist , & first , & last , & self -> number )) return -1 ; if ( first ) { Py_SETREF ( self -> first , Py_NewRef ( first )); } if ( last ) { Py_SETREF ( self -> last , Py_NewRef ( last )); } return 0 ; } static PyMemberDef Custom_membe...ic PyObject * Custom_getfirst ( PyObject * op , void * closure ) { CustomObject * self = ( CustomObject * ) op ; return Py_NewRef ( self -> first ); } static int Custom_setfirst ( PyObject * op , PyObject * value , void * closure ) { CustomObject * sel... - https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
- 参照カウント — Python 3.14.8 ドキュメント 11869
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 参照カウント テーマ 自動 ライト ダーク | 参照カウント ¶ このセクションにある関数とマクロは、 Python オブジェクトの参照カウントの管
...クトには何もしません。 This function is usually used to convert a borrowed reference to a strong reference in-place. The Py_NewRef() function can be used to create a new strong reference . When done using the object, release is by calling Py_DECREF() ....( PyObject * o ) ¶ Similar to Py_INCREF() , but the object o can be NULL , in which case this has no effect. See also Py_XNewRef() . PyObject * Py_NewRef ( PyObject * o ) ¶ 次に属します: Stable ABI (バージョン 3.10 より). Create a new strong reference...is no longer needed, Py_DECREF() should be called on it to release the reference. The object o must not be NULL ; use Py_XNewRef() if o can be NULL . 例えば: Py_INCREF ( obj ); self -> attr = obj ; can be written as: self -> attr = Py_NewRef ( obj );... - https://man.mtool.work/python/3.14/c-api/refcounting.html
- 参照カウント — Python 3.14.8 ドキュメント 10943
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 参照カウント テーマ 自動 ライト ダーク | 参照カウント ¶ このセクションにある関数とマクロは、 Python オブジェクトの参照カウントの管
...クトには何もしません。 This function is usually used to convert a borrowed reference to a strong reference in-place. The Py_NewRef() function can be used to create a new strong reference . When done using the object, release is by calling Py_DECREF() ....( PyObject * o ) ¶ Similar to Py_INCREF() , but the object o can be NULL , in which case this has no effect. See also Py_XNewRef() . PyObject * Py_NewRef ( PyObject * o ) ¶ 次に属します: Stable ABI (バージョン 3.10 より). Create a new strong reference...is no longer needed, Py_DECREF() should be called on it to release the reference. The object o must not be NULL ; use Py_XNewRef() if o can be NULL . 例えば: Py_INCREF ( obj ); self -> attr = obj ; can be written as: self -> attr = Py_NewRef ( obj );... - https://man.mtool.work/python/3.14/c-api/refcounting.html
- C API Stability — Python 3.14.8 ドキュメント 8133
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » C API Stability テーマ 自動 ライト ダーク | C API Stability ¶ Unless documented otherwise, Python's C API is covered by the Backw
...orcall_Call() PyVectorcall_NARGS() PyWeakReference PyWeakref_GetObject() PyWeakref_GetRef() PyWeakref_NewProxy() PyWeakref_NewRef() PyWrapperDescr_Type PyWrapper_New() PyZip_Type Py_ASNATIVEBYTES_ALLOW_INDEX Py_ASNATIVEBYTES_BIG_ENDIAN Py_ASNATIVEBYTES...Py_IsInitialized() Py_IsNone() Py_IsTrue() Py_LeaveRecursiveCall() Py_Main() Py_MakePendingCalls() Py_NewInterpreter() Py_NewRef() Py_PACK_FULL_VERSION() Py_PACK_VERSION() Py_READONLY Py_REFCNT() Py_RELATIVE_OFFSET Py_ReprEnter() Py_ReprLeave() Py_Set...TE Py_T_UINT Py_T_ULONG Py_T_ULONGLONG Py_T_USHORT Py_UCS4 Py_UNBLOCK_THREADS Py_UTF8Mode Py_VaBuildValue() Py_Version Py_XNewRef() Py_am_aiter Py_am_anext Py_am_await Py_am_send Py_bf_getbuffer Py_bf_releasebuffer Py_buffer Py_intptr_t Py_mod_create P... - https://man.mtool.work/python/3.14/c-api/stable.html
- 弱参照オブジェクト — Python 3.14.8 ドキュメント 8133
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 弱参照オブジェクト テーマ 自動 ライト ダーク | 弱参照オブジェクト ¶ Python は 弱参照
...heckProxy ( PyObject * ob ) ¶ Return non-zero if ob is a proxy object. This function always succeeds. PyObject * PyWeakref_NewRef ( PyObject * ob , PyObject * callback ) ¶ 戻り値: 新しい参照。 次に属します: Stable ABI . Return a weak reference object f...or the object ob . This will always return a new reference, but is not guaranteed to create a new object; an existing reference object may be returned. The second parameter,...新しい参照。 次に属します: Stable ABI . Return a weak reference proxy object for the object ob . This will always return a new reference, but is not guaranteed to create a new object; an existing proxy object may be returned. The second parameter, call... - https://man.mtool.work/python/3.14/c-api/weakref.html
- C API Stability — Python 3.14.8 ドキュメント 8133
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » C API Stability テーマ 自動 ライト ダーク | C API Stability ¶ Unless documented otherwise, Python's C API is covered by the Backw
...orcall_Call() PyVectorcall_NARGS() PyWeakReference PyWeakref_GetObject() PyWeakref_GetRef() PyWeakref_NewProxy() PyWeakref_NewRef() PyWrapperDescr_Type PyWrapper_New() PyZip_Type Py_ASNATIVEBYTES_ALLOW_INDEX Py_ASNATIVEBYTES_BIG_ENDIAN Py_ASNATIVEBYTES...Py_IsInitialized() Py_IsNone() Py_IsTrue() Py_LeaveRecursiveCall() Py_Main() Py_MakePendingCalls() Py_NewInterpreter() Py_NewRef() Py_PACK_FULL_VERSION() Py_PACK_VERSION() Py_READONLY Py_REFCNT() Py_RELATIVE_OFFSET Py_ReprEnter() Py_ReprLeave() Py_Set...TE Py_T_UINT Py_T_ULONG Py_T_ULONGLONG Py_T_USHORT Py_UCS4 Py_UNBLOCK_THREADS Py_UTF8Mode Py_VaBuildValue() Py_Version Py_XNewRef() Py_am_aiter Py_am_anext Py_am_await Py_am_send Py_bf_getbuffer Py_bf_releasebuffer Py_buffer Py_intptr_t Py_mod_create P... - https://man.mtool.work/python/3.14/c-api/stable.html
- 弱参照オブジェクト — Python 3.14.8 ドキュメント 8133
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 弱参照オブジェクト テーマ 自動 ライト ダーク | 弱参照オブジェクト ¶ Python は 弱参照
...heckProxy ( PyObject * ob ) ¶ Return non-zero if ob is a proxy object. This function always succeeds. PyObject * PyWeakref_NewRef ( PyObject * ob , PyObject * callback ) ¶ 戻り値: 新しい参照。 次に属します: Stable ABI . Return a weak reference object f...or the object ob . This will always return a new reference, but is not guaranteed to create a new object; an existing reference object may be returned. The second parameter,...新しい参照。 次に属します: Stable ABI . Return a weak reference proxy object for the object ob . This will always return a new reference, but is not guaranteed to create a new object; an existing proxy object may be returned. The second parameter, call... - https://man.mtool.work/python/3.14/c-api/weakref.html
- タプルオブジェクト (tuple object) — Python 3.14.8 ドキュメント 7753
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » タプルオブジェクト (tuple object) テーマ 自動 ライト ダーク | タプルオブジェクト (tup
...wed from the tuple p (that is: it is only valid as long as you hold a reference to p ). To get a strong reference , use Py_NewRef(PyTuple_GetItem(...)) or PySequence_GetItem() . PyObject * PyTuple_GET_ITEM ( PyObject * p , Py_ssize_t pos ) ¶ 戻り値: 借... - https://man.mtool.work/python/3.14/c-api/tuple.html
- C API Extension Support for Free Threading — Python 3.14.8 ドキュメント 7753
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » C API Extension Support for Free Threading テーマ 自動 ライト ダーク | C API Extension Support for Free Threading ¶ Starting with the 3.13 release
...an internal count field, you could use a critical section while reading or writing that field: // read the count, returns new reference to internal count value PyObject * result ; Py_BEGIN_CRITICAL_SECTION ( obj ); result = Py_NewRef ( obj -> count );... - https://man.mtool.work/python/3.14/howto/free-threading-extensions.html