per page, with , order by , clip by
Results of 1 - 10 of about 50 for traverse (0.008 sec.)
拡張モジュールを分離する — Python 3.14.8 ドキュメント 11986
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 拡張モジュールを分離する テーマ 自動 ライト ダーク | 拡張モジュールを分離する ¶ 概要 Traditionally, state belonging to Python extension modules wa ... includes PyObject pointers, the module object must hold references to those objects and implement the module-level hooks m_traverse , m_clear and m_free . These work like tp_traverse , tp_clear and tp_free of a class. Adding them will require some work a ... pes must implement the garbage collection protocol. That is, heap types should: Have the Py_TPFLAGS_HAVE_GC flag. Define a traverse function using Py_tp_traverse , which visits the type (e.g. using Py_VISIT(Py_TYPE(self)) ). Please refer to the documenta ... tion of Py_TPFLAGS_HAVE_GC and tp_traverse for additional considerations. The API for defining heap types grew organically, leaving it somewhat awkward to use in its ...
https://man.mtool.work/python/3.14/howto/isolating-extensions.html
拡張モジュールを分離する — Python 3.14.8 ドキュメント 11986
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 拡張モジュールを分離する テーマ 自動 ライト ダーク | 拡張モジュールを分離する ¶ 概要 Traditionally, state belonging to Python extension modules wa ... includes PyObject pointers, the module object must hold references to those objects and implement the module-level hooks m_traverse , m_clear and m_free . These work like tp_traverse , tp_clear and tp_free of a class. Adding them will require some work a ... pes must implement the garbage collection protocol. That is, heap types should: Have the Py_TPFLAGS_HAVE_GC flag. Define a traverse function using Py_tp_traverse , which visits the type (e.g. using Py_VISIT(Py_TYPE(self)) ). Please refer to the documenta ... tion of Py_TPFLAGS_HAVE_GC and tp_traverse for additional considerations. The API for defining heap types grew organically, leaving it somewhat awkward to use in its ...
https://man.mtool.work/python/3.14/howto/isolating-extensions.html
循環参照ガベージコレクションをサポートする — Python 3.14.8 ドキュメント 11309
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 循環参照ガベージコレクションをサポートする テーマ 自動 ライト ダーク | ... er type, the tp_flags field of the type object must include the Py_TPFLAGS_HAVE_GC and provide an implementation of the tp_traverse handler. If instances of the type are mutable, a tp_clear implementation must also be provided. Py_TPFLAGS_HAVE_GC このフラ ... ect_GC_Del() で解放しなければなりません。 警告 If a type adds the Py_TPFLAGS_HAVE_GC, then it must implement at least a tp_traverse handler or explicitly use one from its subclass or subclasses. When calling PyType_Ready() or some of the APIs that indire ... call it like PyType_FromSpecWithBases() or PyType_FromSpec() the interpreter will automatically populate the tp_flags , tp_traverse and tp_clear fields if the type inherits from a class that implements the garbage collector protocol and the child class d ...
https://man.mtool.work/python/3.14/c-api/gcsupport.html
循環参照ガベージコレクションをサポートする — Python 3.14.8 ドキュメント 11309
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 循環参照ガベージコレクションをサポートする テーマ 自動 ライト ダーク | ... er type, the tp_flags field of the type object must include the Py_TPFLAGS_HAVE_GC and provide an implementation of the tp_traverse handler. If instances of the type are mutable, a tp_clear implementation must also be provided. Py_TPFLAGS_HAVE_GC このフラ ... ect_GC_Del() で解放しなければなりません。 警告 If a type adds the Py_TPFLAGS_HAVE_GC, then it must implement at least a tp_traverse handler or explicitly use one from its subclass or subclasses. When calling PyType_Ready() or some of the APIs that indire ... call it like PyType_FromSpecWithBases() or PyType_FromSpec() the interpreter will automatically populate the tp_flags , tp_traverse and tp_clear fields if the type inherits from a class that implements the garbage collector protocol and the child class d ...
https://man.mtool.work/python/3.14/c-api/gcsupport.html
Type Object Structures — Python 3.14.8 ドキュメント 10136
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu ... __delattr__ X X G tp_as_buffer PyBufferProcs * sub-slots % tp_flags unsigned long X X ? tp_doc const char * __doc__ X X tp_traverse traverseproc X G tp_clear inquiry X G tp_richcompare richcmpfunc __lt__, __le__, __eq__, __ne__, __gt__, __ge__ X G ( tp_w ... 型 (typedef) 引数型 返り値型 allocfunc PyTypeObject * Py_ssize_t PyObject * destructor PyObject * void freefunc void * void traverseproc PyObject * visitproc void * int newfunc PyTypeObject * PyObject * PyObject * PyObject * initproc PyObject * PyObject * ... * tp_doc ; /* Documentation string */ /* Assigned meaning in release 2.0 */ /* call function for all accessible objects */ traverseproc tp_traverse ; /* delete references to contained objects */ inquiry tp_clear ; /* Assigned meaning in release 2.1 */ /* ...
https://man.mtool.work/python/3.14/c-api/typeobj.html
Type Object Structures — Python 3.14.8 ドキュメント 10136
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu ... __delattr__ X X G tp_as_buffer PyBufferProcs * sub-slots % tp_flags unsigned long X X ? tp_doc const char * __doc__ X X tp_traverse traverseproc X G tp_clear inquiry X G tp_richcompare richcmpfunc __lt__, __le__, __eq__, __ne__, __gt__, __ge__ X G ( tp_w ... 型 (typedef) 引数型 返り値型 allocfunc PyTypeObject * Py_ssize_t PyObject * destructor PyObject * void freefunc void * void traverseproc PyObject * visitproc void * int newfunc PyTypeObject * PyObject * PyObject * PyObject * initproc PyObject * PyObject * ... * tp_doc ; /* Documentation string */ /* Assigned meaning in release 2.0 */ /* call function for all accessible objects */ traverseproc tp_traverse ; /* delete references to contained objects */ inquiry tp_clear ; /* Assigned meaning in release 2.1 */ /* ...
https://man.mtool.work/python/3.14/c-api/typeobj.html
Object Life Cycle — Python 3.14.8 ドキュメント 9384
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Object Life Cycle テーマ 自動 ライト ダーク | Object Life Cycle ¶ This ... tp_new->tp_alloc direct call tp_init tp_init tp_new->tp_init reachable reachable tp_init->reachable reachable->tp_init tp_traverse tp_traverse reachable->tp_traverse not in a cyclic isolate reachable->tp_traverse periodic cyclic isolate detection finali ... le (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 finalized) tp_clear tp_clear finalized?->tp_clear yes tp_fi ... AGS_HAVE_GC flag is set in tp_flags ), the following events are also possible: The garbage collector occasionally calls tp_traverse to identify cyclic isolates . When the garbage collector discovers a cyclic isolate , it finalizes one of the objects in t ...
https://man.mtool.work/python/3.14/c-api/lifecycle.html
Object Life Cycle — Python 3.14.8 ドキュメント 9384
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Object Life Cycle テーマ 自動 ライト ダーク | Object Life Cycle ¶ This ... tp_new->tp_alloc direct call tp_init tp_init tp_new->tp_init reachable reachable tp_init->reachable reachable->tp_init tp_traverse tp_traverse reachable->tp_traverse not in a cyclic isolate reachable->tp_traverse periodic cyclic isolate detection finali ... le (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 finalized) tp_clear tp_clear finalized?->tp_clear yes tp_fi ... AGS_HAVE_GC flag is set in tp_flags ), the following events are also possible: The garbage collector occasionally calls tp_traverse to identify cyclic isolates . When the garbage collector discovers a cyclic isolate , it finalizes one of the objects in t ...
https://man.mtool.work/python/3.14/c-api/lifecycle.html
What's New In Python 3.9 — Python 3.14.8 ドキュメント 8452
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.9 テーマ 自動 ライト ダーク | What's New In Python 3.9 ¶ 編集者 : Łukasz Langa This article explains the new featur ... e C API" of Python 3.8, for the vast majority of cases, there should be no side effect but for types that have a custom tp_traverse function, ensure that all custom tp_traverse functions of heap-allocated types visit the object's type. 例: int foo_traver ... se ( PyObject * self , visitproc visit , void * arg ) { // Rest of the traverse function #if PY_VERSION_HEX >= 0x03090000 // This was not needed before Python 3.9 (Python issue 35810 and 40217) Py_VISIT ... ( Py_TYPE ( self )); #endif } If your traverse function delegates to tp_traverse of its base class (or another type), ensure that Py_TYPE(self) is visited only once. Not ...
https://man.mtool.work/python/3.14/whatsnew/3.9.html
What's New In Python 3.9 — Python 3.14.8 ドキュメント 8452
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.9 テーマ 自動 ライト ダーク | What's New In Python 3.9 ¶ 編集者 : Łukasz Langa This article explains the new featur ... e C API" of Python 3.8, for the vast majority of cases, there should be no side effect but for types that have a custom tp_traverse function, ensure that all custom tp_traverse functions of heap-allocated types visit the object's type. 例: int foo_traver ... se ( PyObject * self , visitproc visit , void * arg ) { // Rest of the traverse function #if PY_VERSION_HEX >= 0x03090000 // This was not needed before Python 3.9 (Python issue 35810 and 40217) Py_VISIT ... ( Py_TYPE ( self )); #endif } If your traverse function delegates to tp_traverse of its base class (or another type), ensure that Py_TYPE(self) is visited only once. Not ...
https://man.mtool.work/python/3.14/whatsnew/3.9.html
PREV 1 2 3 4 5 NEXT