Results of 1 - 10 of about 59 for Malloc (0.008 sec.)
- メモリ管理 — Python 3.14.8 ドキュメント 14793
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » メモリ管理 テーマ 自動 ライト ダーク | メモリ管理 ¶ 概要 ¶ Python におけるメモリ管理には、全ての Python オブジェクトとデータ構造が
...行います。 メモリ管理の崩壊を避けるため、拡張モジュールの作者は決して Python オブジェクトを C ライブラリが公開している関数: malloc() 、 calloc() 、 realloc() および free() で操作しようとしてはなりません。こうした関数を使うと、C のメモリ操作関数と Python...を使って安全にメモリを確保したり解放したりできます。例えば、以下がそのような例です: PyObject * res ; char * buf = ( char * ) malloc ( BUFSIZ ); /* for I/O */ if ( buf == NULL ) return PyErr_NoMemory (); ... Do some I / O operation involving buf ... res =...PyBytes_FromString ( buf ); free ( buf ); /* malloc'ed */ return res ; この例では、I/O バッファに対するメモリ要求は C ライブラリのメモリ操作関数を使っています。Python メモリマ... - https://man.mtool.work/python/3.14/c-api/memory.html
- メモリ管理 — Python 3.14.8 ドキュメント 14735
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » メモリ管理 テーマ 自動 ライト ダーク | メモリ管理 ¶ 概要 ¶ Python におけるメモリ管理には、全ての Python オブジェクトとデータ構造が
...行います。 メモリ管理の崩壊を避けるため、拡張モジュールの作者は決して Python オブジェクトを C ライブラリが公開している関数: malloc() 、 calloc() 、 realloc() および free() で操作しようとしてはなりません。こうした関数を使うと、C のメモリ操作関数と Python...を使って安全にメモリを確保したり解放したりできます。例えば、以下がそのような例です: PyObject * res ; char * buf = ( char * ) malloc ( BUFSIZ ); /* for I/O */ if ( buf == NULL ) return PyErr_NoMemory (); ... Do some I / O operation involving buf ... res =...PyBytes_FromString ( buf ); free ( buf ); /* malloc'ed */ return res ; この例では、I/O バッファに対するメモリ要求は C ライブラリのメモリ操作関数を使っています。Python メモリマ... - https://man.mtool.work/python/3.14/c-api/memory.html
- What's New In Python 3.6 — Python 3.14.8 ドキュメント 8155
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.6 テーマ 自動 ライト ダーク | What's New In Python 3.6 ¶ エディタ : Elvis Pranskevichus < elvis @ magic . io >, Yur
...に渡されたときの 順序に一致した ものになりました。 DTrace と SystemTap の プローブのサポート が追加されました。 新しい PYTHONMALLOC 環境変数が、インタープリタのメモリ確保とメモリアクセスエラーのデバッグに使えるようになりました。 標準ライブラリーの顕著な改.... datetime モジュールで 地域時間の曖昧さ回避 がサポートされました。 typing モジュールに数多くの 改善 がなされました。 tracemalloc モジュールが大幅に書き直され、改善されたメモリ割り当てエラーの診断プログラムの提供だけでなく、 ResourceWarning の出力メッセ...ージも改善されています。 より詳しいことは PYTHONMALLOC 節 を参照してください。 セキュリティの改善: The new secrets module has been added to simplify the generation of cryptograp... - https://man.mtool.work/python/3.14/whatsnew/3.6.html
- What's New In Python 3.6 — Python 3.14.8 ドキュメント 8155
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.6 テーマ 自動 ライト ダーク | What's New In Python 3.6 ¶ エディタ : Elvis Pranskevichus < elvis @ magic . io >, Yur
...に渡されたときの 順序に一致した ものになりました。 DTrace と SystemTap の プローブのサポート が追加されました。 新しい PYTHONMALLOC 環境変数が、インタープリタのメモリ確保とメモリアクセスエラーのデバッグに使えるようになりました。 標準ライブラリーの顕著な改.... datetime モジュールで 地域時間の曖昧さ回避 がサポートされました。 typing モジュールに数多くの 改善 がなされました。 tracemalloc モジュールが大幅に書き直され、改善されたメモリ割り当てエラーの診断プログラムの提供だけでなく、 ResourceWarning の出力メッセ...ージも改善されています。 より詳しいことは PYTHONMALLOC 節 を参照してください。 セキュリティの改善: The new secrets module has been added to simplify the generation of cryptograp... - https://man.mtool.work/python/3.14/whatsnew/3.6.html
- Python 初期化設定 — Python 3.14.8 ドキュメント 7922
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » Python 初期化設定 テーマ 自動 ライト ダーク | Python 初期化設定 ¶ PyInitConfig C API ¶ Added in version 3.14. Python は Py_Initia
...s_fs_encoding" legacy_windows_fs_encoding bool 読み出し専用 "legacy_windows_stdio" legacy_windows_stdio bool 読み出し専用 "malloc_stats" malloc_stats bool 読み出し専用 "module_search_paths" module_search_paths list[str] Public "optimization_level" opti...ing" stdio_encoding str 読み出し専用 "stdio_errors" stdio_errors str 読み出し専用 "stdlib_dir" stdlib_dir str Public "tracemalloc" tracemalloc int 読み出し専用 "use_environment" use_environment bool Public "use_frozen_modules" use_frozen_modules bool 読...create a status set func to NULL . 以下はプログラム例です: PyStatus alloc ( void ** ptr , size_t size ) { * ptr = PyMem_RawMalloc ( size ); if ( * ptr == NULL ) { return PyStatus_NoMemory (); } return PyStatus_Ok (); } int main ( int argc , char ** arg... - https://man.mtool.work/python/3.14/c-api/init_config.html
- Python 初期化設定 — Python 3.14.8 ドキュメント 7922
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » Python 初期化設定 テーマ 自動 ライト ダーク | Python 初期化設定 ¶ PyInitConfig C API ¶ Added in version 3.14. Python は Py_Initia
...s_fs_encoding" legacy_windows_fs_encoding bool 読み出し専用 "legacy_windows_stdio" legacy_windows_stdio bool 読み出し専用 "malloc_stats" malloc_stats bool 読み出し専用 "module_search_paths" module_search_paths list[str] Public "optimization_level" opti...ing" stdio_encoding str 読み出し専用 "stdio_errors" stdio_errors str 読み出し専用 "stdlib_dir" stdlib_dir str Public "tracemalloc" tracemalloc int 読み出し専用 "use_environment" use_environment bool Public "use_frozen_modules" use_frozen_modules bool 読...create a status set func to NULL . 以下はプログラム例です: PyStatus alloc ( void ** ptr , size_t size ) { * ptr = PyMem_RawMalloc ( size ); if ( * ptr == NULL ) { return PyStatus_NoMemory (); } return PyStatus_Ok (); } int main ( int argc , char ** arg... - https://man.mtool.work/python/3.14/c-api/init_config.html
- 1. コマンドラインと環境 — Python 3.14.8 ドキュメント 7790
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python のセットアップと利用 » 1. コマンドラインと環境 テーマ 自動 ライト ダーク | 1. コマンドラインと環境 ¶ CPython インタプリタはコマンドラインと環境を読み取って
...es or after each statement in the interactive interpreter. This only works on debug builds . Added in version 3.4. -X tracemalloc to start tracing Python memory allocations using the tracemalloc module. By default, only the most recent frame is stored...in a traceback of a trace. Use -X tracemalloc=NFRAME to start tracing with a traceback limit of NFRAME frames. See tracemalloc.start() and PYTHONTRACEMALLOC for more in...IGILL signals to dump the Python traceback. This is equivalent to -X faulthandler option. Added in version 3.3. PYTHONTRACEMALLOC ¶ If this environment variable is set to a non-empty string, start tracing Python memory allocations using the tracemalloc... - https://man.mtool.work/python/3.14/using/cmdline.html
- 1. コマンドラインと環境 — Python 3.14.8 ドキュメント 7790
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python のセットアップと利用 » 1. コマンドラインと環境 テーマ 自動 ライト ダーク | 1. コマンドラインと環境 ¶ CPython インタプリタはコマンドラインと環境を読み取って
...es or after each statement in the interactive interpreter. This only works on debug builds . Added in version 3.4. -X tracemalloc to start tracing Python memory allocations using the tracemalloc module. By default, only the most recent frame is stored...in a traceback of a trace. Use -X tracemalloc=NFRAME to start tracing with a traceback limit of NFRAME frames. See tracemalloc.start() and PYTHONTRACEMALLOC for more in...IGILL signals to dump the Python traceback. This is equivalent to -X faulthandler option. Added in version 3.3. PYTHONTRACEMALLOC ¶ If this environment variable is set to a non-empty string, start tracing Python memory allocations using the tracemalloc... - https://man.mtool.work/python/3.14/using/cmdline.html
- Allocating objects on the heap — Python 3.14.8 ドキュメント 7674
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Allocating objects on the heap テーマ 自動 ライト ダーク | Allocating
...new Python object using the C structure type TYPE and the Python type object typeobj ( PyTypeObject* ) by calling PyObject_Malloc() to allocate memory and initializing it like PyObject_Init() . The caller will own the only reference to the object (i.e....wVar PyObject_INIT ( op , typeobj ) ¶ PyObject_Init() PyObject_INIT_VAR ( op , typeobj , n ) ¶ PyObject_InitVar() PyObject_MALLOC ( n ) ¶ PyObject_Malloc() PyObject_REALLOC ( p , n ) ¶ PyObject_Realloc() PyObject_FREE ( p ) ¶ PyObject_Free() PyObject_D... - https://man.mtool.work/python/3.14/c-api/allocation.html
- Allocating objects on the heap — Python 3.14.8 ドキュメント 7674
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Allocating objects on the heap テーマ 自動 ライト ダーク | Allocating
...new Python object using the C structure type TYPE and the Python type object typeobj ( PyTypeObject* ) by calling PyObject_Malloc() to allocate memory and initializing it like PyObject_Init() . The caller will own the only reference to the object (i.e....wVar PyObject_INIT ( op , typeobj ) ¶ PyObject_Init() PyObject_INIT_VAR ( op , typeobj , n ) ¶ PyObject_InitVar() PyObject_MALLOC ( n ) ¶ PyObject_Malloc() PyObject_REALLOC ( p , n ) ¶ PyObject_Realloc() PyObject_FREE ( p ) ¶ PyObject_Free() PyObject_D... - https://man.mtool.work/python/3.14/c-api/allocation.html