per page, with , order by , clip by
Results of 1 - 8 of about 8 for typeobj (0.005 sec.)
Allocating objects on the heap — Python 3.14.8 ドキュメント 12254
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 * type ) ¶ 戻り値: 借用参照。 次に属します: Stable ABI . Initialize a newly allocated object op with its type and initi ... onding to the initial PyObject structure. It does not zero the rest. PyVarObject * PyObject_InitVar ( PyVarObject * op , PyTypeObject * type , Py_ssize_t size ) ¶ 戻り値: 借用参照。 次に属します: Stable ABI . PyObject_Init() の全ての処理を行い、可変サイ ...
https://man.mtool.work/python/3.14/c-api/allocation.html
Allocating objects on the heap — Python 3.14.8 ドキュメント 11802
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 * type ) ¶ 戻り値: 借用参照。 次に属します: Stable ABI . Initialize a newly allocated object op with its type and initi ... onding to the initial PyObject structure. It does not zero the rest. PyVarObject * PyObject_InitVar ( PyVarObject * op , PyTypeObject * type , Py_ssize_t size ) ¶ 戻り値: 借用参照。 次に属します: Stable ABI . PyObject_Init() の全ての処理を行い、可変サイ ...
https://man.mtool.work/python/3.14/c-api/allocation.html
拡張モジュールを分離する — Python 3.14.8 ドキュメント 8820
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 拡張モジュールを分離する テーマ 自動 ライト ダーク | 拡張モジュールを分離する ¶ 概要 Traditionally, state belonging to Python extension modules wa ... of m_size , so this is easy to prevent. Heap Types ¶ Traditionally, types defined in C code are static ; that is, static PyTypeObject structures defined directly in code and initialized using PyType_Ready() . Such types are necessarily shared across the ... out for the following two points in particular (but note that this is not a comprehensive list): Unlike static types, heap type objects are mutable by default. Use the Py_TPFLAGS_IMMUTABLETYPE flag to prevent mutability. Heap types inherit tp_new by def ... the instance is deallocated. For example: static void my_dealloc ( PyObject * self ) { PyObject_GC_UnTrack ( self ); ... PyTypeObject * type = Py_TYPE ( self ); type -> tp_free ( self ); Py_DECREF ( type ); } The default tp_dealloc function does this, s ...
https://man.mtool.work/python/3.14/howto/isolating-extensions.html
拡張モジュールを分離する — Python 3.14.8 ドキュメント 8820
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 拡張モジュールを分離する テーマ 自動 ライト ダーク | 拡張モジュールを分離する ¶ 概要 Traditionally, state belonging to Python extension modules wa ... of m_size , so this is easy to prevent. Heap Types ¶ Traditionally, types defined in C code are static ; that is, static PyTypeObject structures defined directly in code and initialized using PyType_Ready() . Such types are necessarily shared across the ... out for the following two points in particular (but note that this is not a comprehensive list): Unlike static types, heap type objects are mutable by default. Use the Py_TPFLAGS_IMMUTABLETYPE flag to prevent mutability. Heap types inherit tp_new by def ... the instance is deallocated. For example: static void my_dealloc ( PyObject * self ) { PyObject_GC_UnTrack ( self ); ... PyTypeObject * type = Py_TYPE ( self ); type -> tp_free ( self ); Py_DECREF ( type ); } The default tp_dealloc function does this, s ...
https://man.mtool.work/python/3.14/howto/isolating-extensions.html
循環参照ガベージコレクションをサポートする — Python 3.14.8 ドキュメント 7862
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 循環参照ガベージコレクションをサポートする テーマ 自動 ライト ダーク | ... レクションに際して特別これといったサポートを提供する必要はありません。 To create a container 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 ... the garbage collector protocol and the child class does not include the Py_TPFLAGS_HAVE_GC flag. PyObject_GC_New ( TYPE , typeobj ) ¶ Analogous to PyObject_New but for container objects with the Py_TPFLAGS_HAVE_GC flag set. Do not call this directly to ... 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. Do not call this d ...
https://man.mtool.work/python/3.14/c-api/gcsupport.html
循環参照ガベージコレクションをサポートする — Python 3.14.8 ドキュメント 7862
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 循環参照ガベージコレクションをサポートする テーマ 自動 ライト ダーク | ... レクションに際して特別これといったサポートを提供する必要はありません。 To create a container 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 ... the garbage collector protocol and the child class does not include the Py_TPFLAGS_HAVE_GC flag. PyObject_GC_New ( TYPE , typeobj ) ¶ Analogous to PyObject_New but for container objects with the Py_TPFLAGS_HAVE_GC flag set. Do not call this directly to ... 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. Do not call this d ...
https://man.mtool.work/python/3.14/c-api/gcsupport.html
unittest --- ユニットテストフレームワーク — Python 3.14.8 ドキュメント 7410
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest --- ユニットテストフレームワーク テーマ 自動 ライト ダーク | unittest --- ユニットテストフレームワーク ¶ ソー ... 既に実装されています。さらに、 addTypeEqualityFunc() を使う事で新たなメソッドを登録することができます: addTypeEqualityFunc ( typeobj , function ) ¶ assertEqual() で呼び出される型特有のメソッドを登録します。登録するメソッドは、比較する2つのオブジェクトの型 ... が厳密に typeobj と同じ (サブクラスでもいけません) の場合に等価性を確認します。 function は assertEqual() と同様に、2つの位置引数と、3番目に ...
https://man.mtool.work/python/3.14/library/unittest.html
unittest --- ユニットテストフレームワーク — Python 3.14.8 ドキュメント 7410
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest --- ユニットテストフレームワーク テーマ 自動 ライト ダーク | unittest --- ユニットテストフレームワーク ¶ ソー ... 既に実装されています。さらに、 addTypeEqualityFunc() を使う事で新たなメソッドを登録することができます: addTypeEqualityFunc ( typeobj , function ) ¶ assertEqual() で呼び出される型特有のメソッドを登録します。登録するメソッドは、比較する2つのオブジェクトの型 ... が厳密に typeobj と同じ (サブクラスでもいけません) の場合に等価性を確認します。 function は assertEqual() と同様に、2つの位置引数と、3番目に ...
https://man.mtool.work/python/3.14/library/unittest.html
PREV 1 NEXT