Results of 1 - 10 of about 29 for NewVar (0.011 sec.)
- 循環参照ガベージコレクションをサポートする — Python 3.14.8 ドキュメント 12514
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 循環参照ガベージコレクションをサポートする テーマ 自動 ライト ダーク |
...以下の二つの規則に適合しなければなりません: The memory for the object must be allocated using PyObject_GC_New or PyObject_GC_NewVar . 他のコンテナへの参照が入るかもしれないフィールドが全て初期化されたら、すぐに PyObject_GC_Track() を呼び出さなければなりま...ally called via the object's tp_free slot). 参考 PyObject_GC_Del() PyObject_New PyType_GenericAlloc() tp_alloc PyObject_GC_NewVar ( TYPE , typeobj , size ) ¶ Analogous to PyObject_NewVar but for container objects with the Py_TPFLAGS_HAVE_GC flag set. D...macro must be freed with PyObject_GC_Del() (usually called via the object's tp_free slot). 参考 PyObject_GC_Del() PyObject_NewVar PyType_GenericAlloc() tp_alloc PyObject * PyUnstable_Object_GC_NewWithExtraData ( PyTypeObject * type , size_t extra_size... - https://man.mtool.work/python/3.14/c-api/gcsupport.html
- 循環参照ガベージコレクションをサポートする — Python 3.14.8 ドキュメント 12514
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 循環参照ガベージコレクションをサポートする テーマ 自動 ライト ダーク |
...以下の二つの規則に適合しなければなりません: The memory for the object must be allocated using PyObject_GC_New or PyObject_GC_NewVar . 他のコンテナへの参照が入るかもしれないフィールドが全て初期化されたら、すぐに PyObject_GC_Track() を呼び出さなければなりま...ally called via the object's tp_free slot). 参考 PyObject_GC_Del() PyObject_New PyType_GenericAlloc() tp_alloc PyObject_GC_NewVar ( TYPE , typeobj , size ) ¶ Analogous to PyObject_NewVar but for container objects with the Py_TPFLAGS_HAVE_GC flag set. D...macro must be freed with PyObject_GC_Del() (usually called via the object's tp_free slot). 参考 PyObject_GC_Del() PyObject_NewVar PyType_GenericAlloc() tp_alloc PyObject * PyUnstable_Object_GC_NewWithExtraData ( PyTypeObject * type , size_t extra_size... - https://man.mtool.work/python/3.14/c-api/gcsupport.html
- Allocating objects on the heap — Python 3.14.8 ドキュメント 11469
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Allocating objects on the heap テーマ 自動 ライト ダーク | Allocating
...objects on the heap ¶ PyObject * _PyObject_New ( PyTypeObject * type ) ¶ 戻り値: 新しい参照。 PyVarObject * _PyObject_NewVar ( PyTypeObject * type , Py_ssize_t size ) ¶ 戻り値: 新しい参照。 PyObject * PyObject_Init ( PyObject * op , PyTypeObject *...ct_CallNoArgs (( PyObject * ) & PyFoo_Type ); 参考 PyObject_Free() PyObject_GC_New PyType_GenericAlloc() tp_alloc PyObject_NewVar ( TYPE , typeobj , size ) ¶ Like PyObject_New except: It allocates enough memory for the TYPE structure plus size ( Py_ssi...on that simply calls this macro. This cannot be used for objects with Py_TPFLAGS_HAVE_GC set in tp_flags ; use PyObject_GC_NewVar instead. Memory allocated by this function must be freed with PyObject_Free() (usually called via the object's tp_free slo... - https://man.mtool.work/python/3.14/c-api/allocation.html
- Allocating objects on the heap — Python 3.14.8 ドキュメント 11469
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Allocating objects on the heap テーマ 自動 ライト ダーク | Allocating
...objects on the heap ¶ PyObject * _PyObject_New ( PyTypeObject * type ) ¶ 戻り値: 新しい参照。 PyVarObject * _PyObject_NewVar ( PyTypeObject * type , Py_ssize_t size ) ¶ 戻り値: 新しい参照。 PyObject * PyObject_Init ( PyObject * op , PyTypeObject *...ct_CallNoArgs (( PyObject * ) & PyFoo_Type ); 参考 PyObject_Free() PyObject_GC_New PyType_GenericAlloc() tp_alloc PyObject_NewVar ( TYPE , typeobj , size ) ¶ Like PyObject_New except: It allocates enough memory for the TYPE structure plus size ( Py_ssi...on that simply calls this macro. This cannot be used for objects with Py_TPFLAGS_HAVE_GC set in tp_flags ; use PyObject_GC_NewVar instead. Memory allocated by this function must be freed with PyObject_Free() (usually called via the object's tp_free slo... - https://man.mtool.work/python/3.14/c-api/allocation.html
- 拡張モジュールを分離する — Python 3.14.8 ドキュメント 9087
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 拡張モジュールを分離する テーマ 自動 ライト ダーク | 拡張モジュールを分離する ¶ 概要 Traditionally, state belonging to Python extension modules wa
...ing PyObject_New ¶ GC-tracked objects need to be allocated using GC-aware functions. If you use PyObject_New() or PyObject_NewVar() : Get and call type's tp_alloc slot, if possible. That is, replace TYPE *o = PyObject_New(TYPE, typeobj) with: TYPE * o...= typeobj -> tp_alloc ( typeobj , 0 ); Replace o = PyObject_NewVar(TYPE, typeobj, size) with the same, but use size instead of the 0. If the above is not possible (e.g. inside a custom tp_a...lloc ), call PyObject_GC_New() or PyObject_GC_NewVar() : TYPE * o = PyObject_GC_New ( TYPE , typeobj ); TYPE * o = PyObject_GC_NewVar ( TYPE , typeobj , size ); Module State A... - https://man.mtool.work/python/3.14/howto/isolating-extensions.html
- 拡張モジュールを分離する — Python 3.14.8 ドキュメント 9087
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 拡張モジュールを分離する テーマ 自動 ライト ダーク | 拡張モジュールを分離する ¶ 概要 Traditionally, state belonging to Python extension modules wa
...ing PyObject_New ¶ GC-tracked objects need to be allocated using GC-aware functions. If you use PyObject_New() or PyObject_NewVar() : Get and call type's tp_alloc slot, if possible. That is, replace TYPE *o = PyObject_New(TYPE, typeobj) with: TYPE * o...= typeobj -> tp_alloc ( typeobj , 0 ); Replace o = PyObject_NewVar(TYPE, typeobj, size) with the same, but use size instead of the 0. If the above is not possible (e.g. inside a custom tp_a...lloc ), call PyObject_GC_New() or PyObject_GC_NewVar() : TYPE * o = PyObject_GC_New ( TYPE , typeobj ); TYPE * o = PyObject_GC_NewVar ( TYPE , typeobj , size ); Module State A... - https://man.mtool.work/python/3.14/howto/isolating-extensions.html
- メモリ管理 — Python 3.14.8 ドキュメント 8190
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » メモリ管理 テーマ 自動 ライト ダーク | メモリ管理 ¶ 概要 ¶ Python におけるメモリ管理には、全ての Python オブジェクトとデータ構造が
...ect's memory; call the type's tp_free slot instead. Do not use this for memory allocated by PyObject_GC_New or PyObject_GC_NewVar ; use PyObject_GC_Del() instead. 参考 PyObject_GC_Del() is the equivalent of this function for memory allocated by types t...hat support garbage collection. PyObject_Malloc() PyObject_Realloc() PyObject_Calloc() PyObject_New PyObject_NewVar PyType_GenericAlloc() tp_free Default Memory Allocators ¶ Default memory allocators: Configuration 名前 PyMem_RawMalloc Py...handling raw memory blocks from the Python heap, objects in Python are allocated and released with PyObject_New , PyObject_NewVar and PyObject_Free() . これらの関数については、次章の C による新しいオブジェクト型の定義や実装に関する記述の中で説明します。... - https://man.mtool.work/python/3.14/c-api/memory.html
- メモリ管理 — Python 3.14.8 ドキュメント 8190
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » メモリ管理 テーマ 自動 ライト ダーク | メモリ管理 ¶ 概要 ¶ Python におけるメモリ管理には、全ての Python オブジェクトとデータ構造が
...ect's memory; call the type's tp_free slot instead. Do not use this for memory allocated by PyObject_GC_New or PyObject_GC_NewVar ; use PyObject_GC_Del() instead. 参考 PyObject_GC_Del() is the equivalent of this function for memory allocated by types t...hat support garbage collection. PyObject_Malloc() PyObject_Realloc() PyObject_Calloc() PyObject_New PyObject_NewVar PyType_GenericAlloc() tp_free Default Memory Allocators ¶ Default memory allocators: Configuration 名前 PyMem_RawMalloc Py...handling raw memory blocks from the Python heap, objects in Python are allocated and released with PyObject_New , PyObject_NewVar and PyObject_Free() . これらの関数については、次章の C による新しいオブジェクト型の定義や実装に関する記述の中で説明します。... - https://man.mtool.work/python/3.14/c-api/memory.html
- 型オブジェクト — Python 3.14.8 ドキュメント 7896
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 型オブジェクト テーマ 自動 ライト ダーク | 型オブジェクト ¶ type PyTypeObject ¶ 次に属
...t garbage collection (i.e., the Py_TPFLAGS_HAVE_GC flag is set), this function behaves like PyObject_GC_New or PyObject_GC_NewVar (except the memory is guaranteed to be zeroed before initialization), and should be paired with PyObject_GC_Del() in tp_fr...ee . Otherwise, it behaves like PyObject_New or PyObject_NewVar (except the memory is guaranteed to be zeroed before initialization) and should be paired with PyObject_Free() in tp_free... - https://man.mtool.work/python/3.14/c-api/type.html
- 型オブジェクト — Python 3.14.8 ドキュメント 7896
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 型オブジェクト テーマ 自動 ライト ダーク | 型オブジェクト ¶ type PyTypeObject ¶ 次に属
...t garbage collection (i.e., the Py_TPFLAGS_HAVE_GC flag is set), this function behaves like PyObject_GC_New or PyObject_GC_NewVar (except the memory is guaranteed to be zeroed before initialization), and should be paired with PyObject_GC_Del() in tp_fr...ee . Otherwise, it behaves like PyObject_New or PyObject_NewVar (except the memory is guaranteed to be zeroed before initialization) and should be paired with PyObject_Free() in tp_free... - https://man.mtool.work/python/3.14/c-api/type.html