Results of 1 - 10 of about 98 for allocated (0.006 sec.)
- メモリ管理 — Python 3.14.8 ドキュメント 12205
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » メモリ管理 テーマ 自動 ライト ダーク | メモリ管理 ¶ 概要 ¶ Python におけるメモリ管理には、全ての Python オブジェクトとデータ構造が
...ompaction or other preventive procedures. Note that by using the C library allocator as shown in the previous example, the allocated memory for the I/O buffer completely escapes the Python memory manager. 参考 環境変数 PYTHONMALLOC を使用して Python が利用...to allocate and free a block of memory must be from the same domain. For example, PyMem_Free() must be used to free memory allocated using PyMem_Malloc() . The three allocation domains are: Raw domain: intended for allocating memory for general-purpose me...n from the Python private heap. See Object allocators . 注釈 The free-threaded build requires that only Python objects are allocated using the "object" domain and that all Python objects are allocated using that domain. This differs from the prior Python... - https://man.mtool.work/python/3.14/c-api/memory.html
- メモリ管理 — Python 3.14.8 ドキュメント 11982
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » メモリ管理 テーマ 自動 ライト ダーク | メモリ管理 ¶ 概要 ¶ Python におけるメモリ管理には、全ての Python オブジェクトとデータ構造が
...ompaction or other preventive procedures. Note that by using the C library allocator as shown in the previous example, the allocated memory for the I/O buffer completely escapes the Python memory manager. 参考 環境変数 PYTHONMALLOC を使用して Python が利用...to allocate and free a block of memory must be from the same domain. For example, PyMem_Free() must be used to free memory allocated using PyMem_Malloc() . The three allocation domains are: Raw domain: intended for allocating memory for general-purpose me...n from the Python private heap. See Object allocators . 注釈 The free-threaded build requires that only Python objects are allocated using the "object" domain and that all Python objects are allocated using that domain. This differs from the prior Python... - https://man.mtool.work/python/3.14/c-api/memory.html
- モジュールオブジェクト (module object) — Python 3.14.8 ドキュメント 10284
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » モジュールオブジェクト (module object) テーマ 自動 ライト ダーク | モジュールオブジェ
...Object * module ) ¶ 次に属します: Stable ABI . Return the "state" of the module, that is, a pointer to the block of memory allocated at module creation time, or NULL . See PyModuleDef.m_size . PyModuleDef * PyModule_GetDef ( PyObject * module ) ¶ 次に属し...imported from Python code. Modules defined using the C API typically use a module definition , PyModuleDef -- a statically allocated, constant “description" of how a module should be created. The definition is usually used to define an extension's “main”...odules dynamically . Unlike PyModule_New() , the definition allows management of module state -- a piece of memory that is allocated and cleared together with the module object. Unlike the module's Python attributes, Python code cannot replace or delete d... - https://man.mtool.work/python/3.14/c-api/module.html
- モジュールオブジェクト (module object) — Python 3.14.8 ドキュメント 10284
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » モジュールオブジェクト (module object) テーマ 自動 ライト ダーク | モジュールオブジェ
...Object * module ) ¶ 次に属します: Stable ABI . Return the "state" of the module, that is, a pointer to the block of memory allocated at module creation time, or NULL . See PyModuleDef.m_size . PyModuleDef * PyModule_GetDef ( PyObject * module ) ¶ 次に属し...imported from Python code. Modules defined using the C API typically use a module definition , PyModuleDef -- a statically allocated, constant “description" of how a module should be created. The definition is usually used to define an extension's “main”...odules dynamically . Unlike PyModule_New() , the definition allows management of module state -- a piece of memory that is allocated and cleared together with the module object. Unlike the module's Python attributes, Python code cannot replace or delete d... - https://man.mtool.work/python/3.14/c-api/module.html
- 循環参照ガベージコレクションをサポートする — Python 3.14.8 ドキュメント 10166
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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 . 他のコンテナへの参照が入るかもしれないフィールドが全て初期化されたら、すぐに...ing 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 PyObject_GC_Del() (usually called via the object's tp_free slot). 参考 PyObject_GC_Del()...ing 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 PyObject_GC_Del() (usually called via the object's tp_free slot). 参考 PyObject_GC_Del()... - https://man.mtool.work/python/3.14/c-api/gcsupport.html
- 循環参照ガベージコレクションをサポートする — Python 3.14.8 ドキュメント 10166
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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 . 他のコンテナへの参照が入るかもしれないフィールドが全て初期化されたら、すぐに...ing 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 PyObject_GC_Del() (usually called via the object's tp_free slot). 参考 PyObject_GC_Del()...ing 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 PyObject_GC_Del() (usually called via the object's tp_free slot). 参考 PyObject_GC_Del()... - https://man.mtool.work/python/3.14/c-api/gcsupport.html
- tracemalloc --- メモリ割り当ての追跡 — Python 3.14.8 ドキュメント 8467
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » tracemalloc --- メモリ割り当ての追跡 テーマ 自動 ライト ダーク | tracemalloc --- メモリ割り当ての追跡 ¶ A
...File "/usr/lib/python3.4/runpy.py" , line 160 "__main__" , fname , loader , pkg_name ) We can see that the most memory was allocated in the importlib module to load data (bytecode and constants) from modules: 870.1 KiB . The traceback is where the importl...( " %s other: %.1f KiB" % ( len ( other ), size / 1024 )) total = sum ( stat . size for stat in top_stats ) print ( "Total allocated size: %.1f KiB" % ( total / 1024 )) tracemalloc . start () # ... run your application ... snapshot = tracemalloc . take_sn...t () #10: Lib/base64.py:142: 59.8 KiB _b32tab2 = [ a + b for a in _b32tab for b in _b32tab ] 6220 other : 3602.8 KiB Total allocated size : 5303.1 KiB オプションの詳細については Snapshot.statistics() を参照してください。 Record the current and peak size o... - https://man.mtool.work/python/3.14/library/tracemalloc.html
- tracemalloc --- メモリ割り当ての追跡 — Python 3.14.8 ドキュメント 8467
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » tracemalloc --- メモリ割り当ての追跡 テーマ 自動 ライト ダーク | tracemalloc --- メモリ割り当ての追跡 ¶ A
...File "/usr/lib/python3.4/runpy.py" , line 160 "__main__" , fname , loader , pkg_name ) We can see that the most memory was allocated in the importlib module to load data (bytecode and constants) from modules: 870.1 KiB . The traceback is where the importl...( " %s other: %.1f KiB" % ( len ( other ), size / 1024 )) total = sum ( stat . size for stat in top_stats ) print ( "Total allocated size: %.1f KiB" % ( total / 1024 )) tracemalloc . start () # ... run your application ... snapshot = tracemalloc . take_sn...t () #10: Lib/base64.py:142: 59.8 KiB _b32tab2 = [ a + b for a in _b32tab for b in _b32tab ] 6220 other : 3602.8 KiB Total allocated size : 5303.1 KiB オプションの詳細については Snapshot.statistics() を参照してください。 Record the current and peak size o... - https://man.mtool.work/python/3.14/library/tracemalloc.html
- Allocating objects on the heap — Python 3.14.8 ドキュメント 8232
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Allocating objects on the heap テーマ 自動 ライト ダーク | Allocating
...* PyObject_Init ( PyObject * op , PyTypeObject * type ) ¶ 戻り値: 借用参照。 次に属します: Stable ABI . Initialize a newly allocated object op with its type and initial reference. Returns the initialized object. Other fields of the object are not initiali..._init__() ). This cannot be used for objects with Py_TPFLAGS_HAVE_GC set in tp_flags ; use PyObject_GC_New instead. Memory allocated by this macro must be freed with PyObject_Free() (usually called via the object's tp_free slot). 注釈 The returned memory...is 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 slot). 注釈 The returned memo... - https://man.mtool.work/python/3.14/c-api/allocation.html
- Type Object Structures — Python 3.14.8 ドキュメント 8010
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu
....ob_refcnt The type object's reference count is initialized to 1 by the PyObject_HEAD_INIT macro. Note that for statically allocated type objects , the type's instances (objects whose ob_type points back to the type) do not count as references. But for dy...namically allocated type objects , the instances do count as references. 継承: サブタイプはこのフィールドを継承しません。 PyObject.ob_type 型自...ルドは単に型の名前になり、モジュール名は型の辞書内でキー '__module__' に対する値として明示的に保存されます。 For statically allocated type objects , the tp_name field should contain a dot. Everything before the last dot is made accessible as the __module__... - https://man.mtool.work/python/3.14/c-api/typeobj.html