per page, with , order by , clip by
Results of 1 - 10 of about 15 for allocated (0.006 sec.)
モジュールオブジェクト (module object) 15047
モジュールオブジェクト (module object) PyTypeObject PyModule_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python のモジュール型を表します。 Python プログラムには types.ModuleType として公開されています。 int PyModule_C ... PyObject * 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
型オブジェクトの構造体 9160
型オブジェクトの構造体 新しい型を定義する PyTypeObject 構造体は、Python のオブジェクトシステムで特に重要な構造体の 1 つです。 型オブジェクトは PyObject_* 関数や PyType_* 関数で扱えますが、ほとんどの Python アプリケーションにとって関心のある ... .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 型自 ... isit and arg parameters to local_traverse() to have these specific names; don't name them just anything. Instances of heap-allocated types hold a reference to their type. Their traversal function must therefore either visit Py_TYPE(self) , or delegate thi ...
https://man.mtool.work/python/3.14/c-api/typeobj.html
Python 開発モード 8655
Python 開発モード Added in version 3.7. Python 開発モードは、コストが高すぎてデフォルトでは有効にできない追加の実行時チェックを行います。 コードが正しければ、デフォルトより多くのメッセージが表示されることはないはずです。 問題を検出したときだ ... script.py:10: ResourceWarning: unclosed file <_io.TextIOWrapper name='README.rst' mode='r' encoding='UTF-8'> main() Object allocated at (most recent call last): File "script.py", lineno 10 main() File "script.py", lineno 4 fp = open(sys.argv[1]) ファイルを ...
https://man.mtool.work/python/3.14/library/devmode.html
tracemalloc --- メモリ割り当ての追跡 8655
tracemalloc --- メモリ割り当ての追跡 Added in version 3.4. ソースコード: Lib/tracemalloc.py tracemallocモジュールは、Python が割り当てたメモリブロックをトレースするためのデバッグツールです。このモジュールは以下の情報を提供します。 オブジェク ... ( " %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 () # ... アプリケーションを実行する ... snapshot = tracemalloc . t ... 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() を参照してください。 トレース中の全メモリブロックの現在 ...
https://man.mtool.work/python/3.14/library/tracemalloc.html
インタープリタの初期化と終了処理 8394
インタープリタの初期化と終了処理 初期化前にインタープリタを設定する方法の詳細は、 Python の初期化設定 を参照してください。 Python の初期化前 Python を組み込むアプリケーションでは、一部の関数と グローバルな設定変数 を除き、ほかの Python/C AP ... ven functions) or modules. Dynamically loaded extension modules loaded by Python are not unloaded. Small amounts of memory allocated by the Python interpreter may not be freed (if you find a leak, please report it). Memory tied up in circular references b ... etween objects is not freed. Interned strings will all be deallocated regardless of their reference count. Some memory allocated by extension modules may not be freed. Some extensions may not ...
https://man.mtool.work/python/3.14/c-api/interp-lifecycle.html
メモリ管理 8394
メモリ管理 概要 Python におけるメモリ管理には、全ての Python オブジェクトとデータ構造が入ったプライベートヒープ (private heap) が必須です。プライベートヒープの管理は、内部的には Python メモリマネージャ (Python memory manager) が確実に行いま ... 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 が利用 ... char * ) PyMem_Malloc ( BUFSIZ ); ... PyMem_Del ( buf3 ); /* Wrong -- should be PyMem_Free() */ free ( buf2 ); /* Right -- allocated via malloc() */ free ( buf1 ); /* Fatal -- should be PyMem_Free() */ Python ヒープの生メモリブロックを扱う関数に加えて、Py ...
https://man.mtool.work/python/3.14/c-api/memory.html
xml.parsers.expat --- Expat を使用した高速な XML 解析 8394
xml.parsers.expat --- Expat を使用した高速な XML 解析 注釈 信頼できないデータや、認証されていないデータを解析する場合は、 XML のセキュリティ を参照してください。 xml.parsers.expat モジュールは、妥当性検証を行わない XML パーサー Expat の Pyt ... or , / ) 直接入力されたデータのバイト数に対する、割り当てた動的メモリのバイト数の最大増幅率を設定します。 解析中の増幅率は allocated / direct で計算されます。 direct は解析対象の主文書から読み込んだバイト数、 allocated はパーサー階層内で割り当てた動的メモ ...
https://man.mtool.work/python/3.14/library/pyexpat.html
What's New In Python 3.6 8394
What's New In Python 3.6 エディタ : Elvis Pranskevichus < elvis @ magic . io >, Yury Selivanov < yury @ magic . io > この記事では 3.5 と比較した Python 3.6 の新機能を解説します。 Python 3.6 は2016年12月23日にリリースされました。 全詳細につい ... xfb at tail + 7 : 0xfb The block was made by call #1233329 to debug malloc/realloc. Data at p : 1 a 2 b 30 00 Memory block allocated at ( most recent call first ): File "test/test_bytes.py" , line 323 File "unittest/case.py" , line 600 File "unittest/case ... ResourceWarning : unclosed file < _io . TextIOWrapper name = 'example.py' mode = 'r' encoding = 'UTF-8' > f = None Object allocated at ( most recent call first ): File "example.py" , lineno 4 return open ( __file__ ) File "example.py" , lineno 6 f = func ... () "Object allocated at" のトレースバックは新しく追加されたもので、 tracemalloc が Python のメモリ割り当てを追跡しており、 warnings モジュールが ...
https://man.mtool.work/python/3.14/whatsnew/3.6.html
循環参照ガベージコレクションをサポートする 8133
循環参照ガベージコレクションをサポートする Python が循環参照を含むガベージの検出とコレクションをサポートするには、他のオブジェクトに対する "コンテナ" (他のオブジェクトには他のコンテナも含みます) となるオブジェクト型によるサポートが必要です。 ... tp_itemsize を使うことが推奨されます。 Added in version 3.12. PyObject_GC_Resize ( TYPE , op , newsize ) Resize an object allocated by PyObject_GC_NewVar . Returns the resized object of type TYPE* (refers to any C type) or NULL on failure. op の型は PyVa ...
https://man.mtool.work/python/3.14/c-api/gcsupport.html
超高水準レイヤ 8133
超高水準レイヤ この章の関数を使うとファイルまたはバッファにある Python ソースコードを実行できますが、より詳細なやり取りをインタプリタとすることはできないでしょう。 これらの関数の一部は、文法の開始記号を引数に取ります。 利用できる開始記号は ... cters are read. Return NULL on failure or interruption; a Python exception may be set. A non- NULL result must be a string allocated by PyMem_RawMalloc() or PyMem_RawRealloc() . バージョン 3.4 で変更: 返り値は、 PyMem_Malloc() や PyMem_Realloc() ではなく、 ...
https://man.mtool.work/python/3.14/c-api/veryhigh.html
PREV 1 2 NEXT