per page, with , order by , clip by
Results of 1 - 10 of about 38 for Dealloc (0.008 sec.)
Object Life Cycle — Python 3.14.8 ドキュメント 12909
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Object Life Cycle テーマ 自動 ライト ダーク | Object Life Cycle ¶ This ... ybe remove finalized mark) uncollectable uncollectable (leaked) reachable->uncollectable cyclic isolate (no GC support) tp_dealloc tp_dealloc reachable->tp_dealloc no refs tp_traverse->finalized? cyclic isolate finalized?->tp_finalize no (mark as finali ... zed) tp_clear tp_clear finalized?->tp_clear yes tp_finalize->tp_clear no refs or cyclic isolate tp_finalize->tp_dealloc recommended call (see explanation) tp_finalize->tp_dealloc no refs tp_clear->uncollectable cyclic isolate tp_clear->tp_dea ... lloc no refs tp_free tp_free tp_dealloc->tp_free direct call Explanation: When a new object is constructed by calling its type: tp_new is called to create a new o ...
https://man.mtool.work/python/3.14/c-api/lifecycle.html
Object Life Cycle — Python 3.14.8 ドキュメント 12909
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Object Life Cycle テーマ 自動 ライト ダーク | Object Life Cycle ¶ This ... ybe remove finalized mark) uncollectable uncollectable (leaked) reachable->uncollectable cyclic isolate (no GC support) tp_dealloc tp_dealloc reachable->tp_dealloc no refs tp_traverse->finalized? cyclic isolate finalized?->tp_finalize no (mark as finali ... zed) tp_clear tp_clear finalized?->tp_clear yes tp_finalize->tp_clear no refs or cyclic isolate tp_finalize->tp_dealloc recommended call (see explanation) tp_finalize->tp_dealloc no refs tp_clear->uncollectable cyclic isolate tp_clear->tp_dea ... lloc no refs tp_free tp_free tp_dealloc->tp_free direct call Explanation: When a new object is constructed by calling its type: tp_new is called to create a new o ...
https://man.mtool.work/python/3.14/c-api/lifecycle.html
2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 10503
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s ... EAD PyObject * first ; /* first name */ PyObject * last ; /* last name */ int number ; } CustomObject ; static void Custom_dealloc ( PyObject * op ) { CustomObject * self = ( CustomObject * ) op ; Py_XDECREF ( self -> first ); Py_XDECREF ( self -> last ... msize = 0 , . tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE , . tp_new = Custom_new , . tp_init = Custom_init , . tp_dealloc = Custom_dealloc , . tp_members = Custom_members , . tp_methods = Custom_methods , }; static int custom_module_exec ( PyOb ... クトの割り当てと解放に際してはより慎重になる必要があります。最低限、オブジェクトの解放メソッドが必要です: static void Custom_dealloc ( PyObject * op ) { CustomObject * self = ( CustomObject * ) op ; Py_XDECREF ( self -> first ); Py_XDECREF ( self -> last ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 10503
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s ... EAD PyObject * first ; /* first name */ PyObject * last ; /* last name */ int number ; } CustomObject ; static void Custom_dealloc ( PyObject * op ) { CustomObject * self = ( CustomObject * ) op ; Py_XDECREF ( self -> first ); Py_XDECREF ( self -> last ... msize = 0 , . tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE , . tp_new = Custom_new , . tp_init = Custom_init , . tp_dealloc = Custom_dealloc , . tp_members = Custom_members , . tp_methods = Custom_methods , }; static int custom_module_exec ( PyOb ... クトの割り当てと解放に際してはより慎重になる必要があります。最低限、オブジェクトの解放メソッドが必要です: static void Custom_dealloc ( PyObject * op ) { CustomObject * self = ( CustomObject * ) op ; Py_XDECREF ( self -> first ); Py_XDECREF ( self -> last ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
Type Object Structures — Python 3.14.8 ドキュメント 9402
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu ... 殊属性 Info [ 2 ] O T D I <R> tp_name const char * __name__ X X tp_basicsize Py_ssize_t X X X tp_itemsize Py_ssize_t X X tp_dealloc destructor X X X tp_vectorcall_offset Py_ssize_t X X ( tp_getattr ) getattrfunc __getattribute__, __getattr__ G ( tp_setat ... Py_ssize_t tp_basicsize , tp_itemsize ; /* For allocation */ /* Methods to implement standard operations */ destructor tp_dealloc ; Py_ssize_t tp_vectorcall_offset ; getattrfunc tp_getattr ; setattrfunc tp_setattr ; PyAsyncMethods * tp_as_async ; /* fo ... ent non-zero value in a subtype (though this depends on the implementation of the base type). destructor PyTypeObject . tp_dealloc ¶ The corresponding slot ID Py_tp_dealloc is part of the Stable ABI . A pointer to the instance destructor function. The f ...
https://man.mtool.work/python/3.14/c-api/typeobj.html
Type Object Structures — Python 3.14.8 ドキュメント 9402
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu ... 殊属性 Info [ 2 ] O T D I <R> tp_name const char * __name__ X X tp_basicsize Py_ssize_t X X X tp_itemsize Py_ssize_t X X tp_dealloc destructor X X X tp_vectorcall_offset Py_ssize_t X X ( tp_getattr ) getattrfunc __getattribute__, __getattr__ G ( tp_setat ... Py_ssize_t tp_basicsize , tp_itemsize ; /* For allocation */ /* Methods to implement standard operations */ destructor tp_dealloc ; Py_ssize_t tp_vectorcall_offset ; getattrfunc tp_getattr ; setattrfunc tp_setattr ; PyAsyncMethods * tp_as_async ; /* fo ... ent non-zero value in a subtype (though this depends on the implementation of the base type). destructor PyTypeObject . tp_dealloc ¶ The corresponding slot ID Py_tp_dealloc is part of the Stable ABI . A pointer to the instance destructor function. The f ...
https://man.mtool.work/python/3.14/c-api/typeobj.html
3. 拡張の型の定義: 雑多なトピック — Python 3.14.8 ドキュメント 9119
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 3. 拡張の型の定義: 雑多なトピック テーマ 自動 ライト ダーク | 3. 拡張の型の定義: 雑多なトピック ¶ この節ではさまざまな実装可 ... Py_ssize_t tp_basicsize , tp_itemsize ; /* For allocation */ /* Methods to implement standard operations */ destructor tp_dealloc ; Py_ssize_t tp_vectorcall_offset ; getattrfunc tp_getattr ; setattrfunc tp_setattr ; PyAsyncMethods * tp_as_async ; /* fo ... の基本的なメソッドに進みます。ほとんどの拡張の型がこのメソッドを実装します。 3.1. ファイナライズとメモリ解放 ¶ destructor tp_dealloc ; 型のインスタンスの参照カウントがゼロになり、Python インタプリタがそれを潰して再利用したくなると、この関数が呼ばれます。解 ... れます。オブジェクトそれ自体もここで解放される必要があります。この関数の例は、以下のようなものです: static void newdatatype_dealloc ( PyObject * op ) { newdatatypeobject * self = ( newdatatypeobject * ) op ; free ( self -> obj_UnderlyingDatatypePtr ); Py ...
https://man.mtool.work/python/3.14/extending/newtypes.html
3. 拡張の型の定義: 雑多なトピック — Python 3.14.8 ドキュメント 9119
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 3. 拡張の型の定義: 雑多なトピック テーマ 自動 ライト ダーク | 3. 拡張の型の定義: 雑多なトピック ¶ この節ではさまざまな実装可 ... Py_ssize_t tp_basicsize , tp_itemsize ; /* For allocation */ /* Methods to implement standard operations */ destructor tp_dealloc ; Py_ssize_t tp_vectorcall_offset ; getattrfunc tp_getattr ; setattrfunc tp_setattr ; PyAsyncMethods * tp_as_async ; /* fo ... の基本的なメソッドに進みます。ほとんどの拡張の型がこのメソッドを実装します。 3.1. ファイナライズとメモリ解放 ¶ destructor tp_dealloc ; 型のインスタンスの参照カウントがゼロになり、Python インタプリタがそれを潰して再利用したくなると、この関数が呼ばれます。解 ... れます。オブジェクトそれ自体もここで解放される必要があります。この関数の例は、以下のようなものです: static void newdatatype_dealloc ( PyObject * op ) { newdatatypeobject * self = ( newdatatypeobject * ) op ; free ( self -> obj_UnderlyingDatatypePtr ); Py ...
https://man.mtool.work/python/3.14/extending/newtypes.html
Pending removal in Python 3.18 — Python 3.14.8 ドキュメント 8459
ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » Pending removal in Python 3.18 テーマ 自動 ライト ダーク | Pending removal in Python 3.18 ¶ The following private functions are deprecated and planned for removal in Python 3. ... PyUnicodeWriter_Finish() : replace _PyUnicodeWriter_Finish(&writer) with PyUnicodeWriter_Finish(writer) . _PyUnicodeWriter_Dealloc() : replace _PyUnicodeWriter_Dealloc(&writer) with PyUnicodeWriter_Discard(writer) . _PyUnicodeWriter_WriteChar() : replac ... PyDict PyLong Finish WriteChar WriteStr WriteSubstring removal functions PyBytes Join Create PyThreadState PyUnicode Init Dealloc start WriteASCIIString WriteLatin replacement HashPointer fopen Pending This page Report a bug Improve this page Show sour ...
https://man.mtool.work/python/3.14/deprecations/c-api-pending-removal-in-3.18.ht...
拡張モジュールを分離する — Python 3.14.8 ドキュメント 8097
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 拡張モジュールを分離する テーマ 自動 ライト ダーク | 拡張モジュールを分離する ¶ 概要 Traditionally, state belonging to Python extension modules wa ... d be encapsulated within the module object, not shared with other module objects, and cleaned up when the module object is deallocated. Since this just is a rule of thumb, exceptions are possible (see Managing Global State ), but they will need more tho ... SIT ( Py_TYPE ( self )); } } It is not necessary to handle the type's reference count in tp_new and tp_clear . Defining tp_dealloc ¶ If your type has a custom tp_dealloc function, it needs to: call PyObject_GC_UnTrack() before any fields are invalidated ... he type. To keep the type valid while tp_free is called, the type's refcount needs to be decremented after the instance is deallocated. For example: static void my_dealloc ( PyObject * self ) { PyObject_GC_UnTrack ( self ); ... PyTypeObject * type = Py_ ...
https://man.mtool.work/python/3.14/howto/isolating-extensions.html
PREV 1 2 3 4 NEXT