Results of 1 - 10 of about 36 for visit (0.010 sec.)
- 循環参照ガベージコレクションをサポートする — Python 3.14.8 ドキュメント 12504
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 循環参照ガベージコレクションをサポートする テーマ 自動 ライト ダーク |
...acros have been removed from the public C API. tp_traverse ハンドラはこの型の関数パラメータを受け取ります: typedef int ( * visitproc ) ( PyObject * object , void * arg ) ¶ 次に属します: Stable ABI . tp_traverse ハンドラに渡されるビジター関数 (visitor...ないでしょう。 tp_traverse ハンドラは次の型を持っていなければなりません: typedef int ( * traverseproc ) ( PyObject * self , visitproc visit , void * arg ) ¶ 次に属します: Stable ABI . Traversal function for a container object. Implementations must call...the visit function for each object directly contained by self , with the parameters to visit being the contained object and the arg... - https://man.mtool.work/python/3.14/c-api/gcsupport.html
- 循環参照ガベージコレクションをサポートする — Python 3.14.8 ドキュメント 12504
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 循環参照ガベージコレクションをサポートする テーマ 自動 ライト ダーク |
...acros have been removed from the public C API. tp_traverse ハンドラはこの型の関数パラメータを受け取ります: typedef int ( * visitproc ) ( PyObject * object , void * arg ) ¶ 次に属します: Stable ABI . tp_traverse ハンドラに渡されるビジター関数 (visitor...ないでしょう。 tp_traverse ハンドラは次の型を持っていなければなりません: typedef int ( * traverseproc ) ( PyObject * self , visitproc visit , void * arg ) ¶ 次に属します: Stable ABI . Traversal function for a container object. Implementations must call...the visit function for each object directly contained by self , with the parameters to visit being the contained object and the arg... - https://man.mtool.work/python/3.14/c-api/gcsupport.html
- 2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 10095
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s
...first name */ PyObject * last ; /* last name */ int number ; } CustomObject ; static int Custom_traverse ( PyObject * op , visitproc visit , void * arg ) { CustomObject * self = ( CustomObject * ) op ; Py_VISIT ( self -> first ); Py_VISIT ( self -> la...od lets the cyclic GC know about subobjects that could participate in cycles: static int Custom_traverse ( PyObject * op , visitproc visit , void * arg ) { CustomObject * self = ( CustomObject * ) op ; int vret ; if ( self -> first ) { vret = visit (...self -> first , arg ); if ( vret != 0 ) return vret ; } if ( self -> last ) { vret = visit ( self -> last , arg ); if ( vret != 0 ) return vret ; } return 0 ; } For each subobject that can participate in cycles, w... - https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
- 2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 10095
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s
...first name */ PyObject * last ; /* last name */ int number ; } CustomObject ; static int Custom_traverse ( PyObject * op , visitproc visit , void * arg ) { CustomObject * self = ( CustomObject * ) op ; Py_VISIT ( self -> first ); Py_VISIT ( self -> la...od lets the cyclic GC know about subobjects that could participate in cycles: static int Custom_traverse ( PyObject * op , visitproc visit , void * arg ) { CustomObject * self = ( CustomObject * ) op ; int vret ; if ( self -> first ) { vret = visit (...self -> first , arg ); if ( vret != 0 ) return vret ; } if ( self -> last ) { vret = visit ( self -> last , arg ); if ( vret != 0 ) return vret ; } return 0 ; } For each subobject that can participate in cycles, w... - https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
- ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 9667
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as
...す。順番は決められていません。この関数はノードをその場で変更するだけで文脈を気にしないような場合に便利です。 class ast. NodeVisitor ¶ 抽象構文木を渡り歩いてビジター関数を見つけたノードごとに呼び出すノード・ビジターの基底クラスです。この関数は visit() メ...に送られる値を返してもかまいません。 このクラスはビジター・メソッドを付け加えたサブクラスを派生させることを意図しています。 visit ( node ) ¶ ノードを訪れます。デフォルトの実装では self.visit_ classname というメソッド (ここで classname はノードのクラス名...です) を呼び出すか、そのメソッドがなければ generic_visit() を呼び出します。 generic_visit ( node ) ¶ このビジターはノードの全ての子について visit() を呼び出します。 注意して欲しい... - https://man.mtool.work/python/3.14/library/ast.html
- ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 9667
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as
...す。順番は決められていません。この関数はノードをその場で変更するだけで文脈を気にしないような場合に便利です。 class ast. NodeVisitor ¶ 抽象構文木を渡り歩いてビジター関数を見つけたノードごとに呼び出すノード・ビジターの基底クラスです。この関数は visit() メ...に送られる値を返してもかまいません。 このクラスはビジター・メソッドを付け加えたサブクラスを派生させることを意図しています。 visit ( node ) ¶ ノードを訪れます。デフォルトの実装では self.visit_ classname というメソッド (ここで classname はノードのクラス名...です) を呼び出すか、そのメソッドがなければ generic_visit() を呼び出します。 generic_visit ( node ) ¶ このビジターはノードの全ての子について visit() を呼び出します。 注意して欲しい... - https://man.mtool.work/python/3.14/library/ast.html
- 拡張モジュールを分離する — Python 3.14.8 ドキュメント 9572
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 拡張モジュールを分離する テーマ 自動 ライト ダーク | 拡張モジュールを分離する ¶ 概要 Traditionally, state belonging to Python extension modules wa
...col. 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 documentation of Py_TPFLAGS_HAVE_GC and tp_traverse f...ate. The following sections will guide you through common issues. tp_traverse in Python 3.8 and lower ¶ The requirement to visit the type from tp_traverse was added in Python 3.9. If you support Python 3.8 and lower, the traverse function must not vis...it the type, so it must be more complicated: static int my_traverse ( PyObject * self , visitproc visit , void * arg ) { if ( Py_Version >= 0x03090000 ) { Py_VISIT ( Py_TYPE ( self )); } return 0 ; } Unfortunately, P... - https://man.mtool.work/python/3.14/howto/isolating-extensions.html
- 拡張モジュールを分離する — Python 3.14.8 ドキュメント 9572
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 拡張モジュールを分離する テーマ 自動 ライト ダーク | 拡張モジュールを分離する ¶ 概要 Traditionally, state belonging to Python extension modules wa
...col. 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 documentation of Py_TPFLAGS_HAVE_GC and tp_traverse f...ate. The following sections will guide you through common issues. tp_traverse in Python 3.8 and lower ¶ The requirement to visit the type from tp_traverse was added in Python 3.9. If you support Python 3.8 and lower, the traverse function must not vis...it the type, so it must be more complicated: static int my_traverse ( PyObject * self , visitproc visit , void * arg ) { if ( Py_Version >= 0x03090000 ) { Py_VISIT ( Py_TYPE ( self )); } return 0 ; } Unfortunately, P... - https://man.mtool.work/python/3.14/howto/isolating-extensions.html
- Type Object Structures — Python 3.14.8 ドキュメント 9033
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu
...値型 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 * PyObject * int reprf...naged by the VM. If this flag is set, Py_TPFLAGS_HAVE_GC should also be set. The type traverse function must call PyObject_VisitManagedDict() and its clear function must call PyObject_ClearManagedDict() . Added in version 3.12. 継承: This flag is inhe...lector. This is only used if the Py_TPFLAGS_HAVE_GC flag bit is set. The signature is: int tp_traverse ( PyObject * self , visitproc visit , void * arg ); Pythonのガベージコレクションの仕組みについての詳細は、 循環参照ガベージコレクションをサポートする... - https://man.mtool.work/python/3.14/c-api/typeobj.html
- Type Object Structures — Python 3.14.8 ドキュメント 9033
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu
...値型 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 * PyObject * int reprf...naged by the VM. If this flag is set, Py_TPFLAGS_HAVE_GC should also be set. The type traverse function must call PyObject_VisitManagedDict() and its clear function must call PyObject_ClearManagedDict() . Added in version 3.12. 継承: This flag is inhe...lector. This is only used if the Py_TPFLAGS_HAVE_GC flag bit is set. The signature is: int tp_traverse ( PyObject * self , visitproc visit , void * arg ); Pythonのガベージコレクションの仕組みについての詳細は、 循環参照ガベージコレクションをサポートする... - https://man.mtool.work/python/3.14/c-api/typeobj.html