per page, with , order by , clip by
Results of 1 - 10 of about 17 for GenericAlloc (0.007 sec.)
Allocating objects on the heap — Python 3.14.8 ドキュメント 12294
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Allocating objects on the heap テーマ 自動 ライト ダーク | Allocating ... is function to be a low-level routine. Use tp_alloc where possible. For implementing tp_alloc for your type, prefer PyType_GenericAlloc() or PyObject_New() . 注釈 This function only initializes the object's memory corresponding to the initial PyObject struct ... ly to allocate memory for an object; call the type's tp_alloc slot instead. When populating a type's tp_alloc slot, PyType_GenericAlloc() is preferred over a custom function that simply calls this macro. This macro does not call tp_alloc , tp_new ( __new__() ... example: PyObject * foo = PyObject_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 s ...
https://man.mtool.work/python/3.14/c-api/allocation.html
Allocating objects on the heap — Python 3.14.8 ドキュメント 12294
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Allocating objects on the heap テーマ 自動 ライト ダーク | Allocating ... is function to be a low-level routine. Use tp_alloc where possible. For implementing tp_alloc for your type, prefer PyType_GenericAlloc() or PyObject_New() . 注釈 This function only initializes the object's memory corresponding to the initial PyObject struct ... ly to allocate memory for an object; call the type's tp_alloc slot instead. When populating a type's tp_alloc slot, PyType_GenericAlloc() is preferred over a custom function that simply calls this macro. This macro does not call tp_alloc , tp_new ( __new__() ... example: PyObject * foo = PyObject_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 s ...
https://man.mtool.work/python/3.14/c-api/allocation.html
循環参照ガベージコレクションをサポートする — Python 3.14.8 ドキュメント 11276
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 循環参照ガベージコレクションをサポートする テーマ 自動 ライト ダーク | ... ly to allocate memory for an object; call the type's tp_alloc slot instead. When populating a type's tp_alloc slot, PyType_GenericAlloc() is preferred over a custom function that simply calls this macro. Memory allocated by this macro must be freed with PyOb ... ject_GC_Del() (usually 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 ... ly to allocate memory for an object; call the type's tp_alloc slot instead. When populating a type's tp_alloc slot, PyType_GenericAlloc() is preferred over a custom function that simply calls this macro. Memory allocated by this macro must be freed with PyOb ...
https://man.mtool.work/python/3.14/c-api/gcsupport.html
循環参照ガベージコレクションをサポートする — Python 3.14.8 ドキュメント 10604
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 循環参照ガベージコレクションをサポートする テーマ 自動 ライト ダーク | ... ly to allocate memory for an object; call the type's tp_alloc slot instead. When populating a type's tp_alloc slot, PyType_GenericAlloc() is preferred over a custom function that simply calls this macro. Memory allocated by this macro must be freed with PyOb ... ject_GC_Del() (usually 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 ... ly to allocate memory for an object; call the type's tp_alloc slot instead. When populating a type's tp_alloc slot, PyType_GenericAlloc() is preferred over a custom function that simply calls this macro. Memory allocated by this macro must be freed with PyOb ...
https://man.mtool.work/python/3.14/c-api/gcsupport.html
Type Object Structures — Python 3.14.8 ドキュメント 8242
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu ... collection. If this bit is set, memory for new instances (see tp_alloc ) must be allocated using PyObject_GC_New or PyType_GenericAlloc() and deallocated (see tp_free ) using PyObject_GC_Del() . More information in section 循環参照ガベージコレクションをサポー ... ject * tp_alloc ( PyTypeObject * self , Py_ssize_t nitems ); 継承: Static subtypes inherit this slot, which will be PyType_GenericAlloc() if inherited from object . Heap subtypes do not inherit this slot. デフォルト For heap subtypes, this field is always se ... t to PyType_GenericAlloc() . For static subtypes, this slot is inherited (see above). newfunc PyTypeObject . tp_new ¶ The corresponding slot ID Py_ ...
https://man.mtool.work/python/3.14/c-api/typeobj.html
Type Object Structures — Python 3.14.8 ドキュメント 8242
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu ... collection. If this bit is set, memory for new instances (see tp_alloc ) must be allocated using PyObject_GC_New or PyType_GenericAlloc() and deallocated (see tp_free ) using PyObject_GC_Del() . More information in section 循環参照ガベージコレクションをサポー ... ject * tp_alloc ( PyTypeObject * self , Py_ssize_t nitems ); 継承: Static subtypes inherit this slot, which will be PyType_GenericAlloc() if inherited from object . Heap subtypes do not inherit this slot. デフォルト For heap subtypes, this field is always se ... t to PyType_GenericAlloc() . For static subtypes, this slot is inherited (see above). newfunc PyTypeObject . tp_new ¶ The corresponding slot ID Py_ ...
https://man.mtool.work/python/3.14/c-api/typeobj.html
C API Stability — Python 3.14.8 ドキュメント 7724
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 ... he() PyType_Freeze() PyType_FromMetaclass() PyType_FromModuleAndSpec() PyType_FromSpec() PyType_FromSpecWithBases() PyType_GenericAlloc() PyType_GenericNew() PyType_GetBaseByToken() PyType_GetFlags() PyType_GetFullyQualifiedName() PyType_GetModule() PyType_G ...
https://man.mtool.work/python/3.14/c-api/stable.html
型オブジェクト — Python 3.14.8 ドキュメント 7724
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 型オブジェクト テーマ 自動 ライト ダーク | 型オブジェクト ¶ type PyTypeObject ¶ 次に属 ... eck__() is not called on b . Call PyObject_IsSubclass() to do the same check that issubclass() would do. PyObject * PyType_GenericAlloc ( PyTypeObject * type , Py_ssize_t nitems ) ¶ 戻り値: 新しい参照。 次に属します: Stable ABI . Generic handler for the tp_a ...
https://man.mtool.work/python/3.14/c-api/type.html
What's New In Python 3.8 — Python 3.14.8 ドキュメント 7724
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.8 テーマ 自動 ライト ダーク | What's New In Python 3.8 ¶ 編集者 : Raymond Hettinger This article explains the new f ... ts will now increase their reference count in PyObject_Init() (and its parallel macro PyObject_INIT ) instead of in PyType_GenericAlloc() . Types that modify instance allocation or deallocation may need to be adjusted. (Contributed by Eddie Elizondo in bpo-3 ... ) ) hold a reference to their type object. Increasing the reference count of these type objects has been moved from PyType_GenericAlloc() to the more low-level functions, PyObject_Init() and PyObject_INIT . This makes types created through PyType_FromSpec() ...
https://man.mtool.work/python/3.14/whatsnew/3.8.html
C API Stability — Python 3.14.8 ドキュメント 7724
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 ... he() PyType_Freeze() PyType_FromMetaclass() PyType_FromModuleAndSpec() PyType_FromSpec() PyType_FromSpecWithBases() PyType_GenericAlloc() PyType_GenericNew() PyType_GetBaseByToken() PyType_GetFlags() PyType_GetFullyQualifiedName() PyType_GetModule() PyType_G ...
https://man.mtool.work/python/3.14/c-api/stable.html
PREV 1 2 NEXT