per page, with , order by , clip by
Results of 1 - 7 of about 7 for RawMalloc (0.009 sec.)
メモリ管理 13395
メモリ管理 概要 Python におけるメモリ管理には、全ての Python オブジェクトとデータ構造が入ったプライベートヒープ (private heap) が必須です。プライベートヒープの管理は、内部的には Python メモリマネージャ (Python memory manager) が確実に行いま ... ルドでは必須の要件です。 例えば、Python オブジェクトではないバッファは PyObject_Malloc() ではなく、 PyMem_Malloc() 、 PyMem_RawMalloc() 、 malloc() で割り当ててください。 メモリ割り当て API を参照してください。 生メモリインターフェース 以下の関数群は、シス ... 、 free() を使います。 0 バイトの要求には malloc(1) または calloc(1, 1) を呼び出します。 Added in version 3.4. void * PyMem_RawMalloc ( size_t n ) 次に属します: Stable ABI (バージョン 3.13 より). n バイトを割り当て、そのメモリを指す void * 型のポインタを返 ... します。要求が失敗した場合 NULL を返します。 0バイトを要求すると、 PyMem_RawMalloc(1) が呼ばれたときと同じように、可能なら NULL でないユニークなポインタを返します。確保されたメモリーにはいかなる初期化も行わ ...
https://man.mtool.work/python/3.14/c-api/memory.html
超高水準レイヤ 9269
超高水準レイヤ この章の関数を使うとファイルまたはバッファにある Python ソースコードを実行できますが、より詳細なやり取りをインタプリタとすることはできないでしょう。 これらの関数の一部は、文法の開始記号を引数に取ります。 利用できる開始記号は ... urn 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() ではなく、 PyMem_RawMalloc() ...
https://man.mtool.work/python/3.14/c-api/veryhigh.html
Python 初期化設定 8451
Python 初期化設定 PyInitConfig C API Added in version 3.14. Python は Py_InitializeFromInitConfig() で初期化できます。 Py_RunMain() 関数は、カスタマイズされた Python プログラムを書くために使用できます。 Initialization, Finalization, and Thr ... する関数は func を 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 ... ALLOCATOR_NOT_SET に設定されている場合は、 Py_PreInitialize() より前にも呼び出せます。 Python の事前初期化より前に、 PyMem_RawMalloc() などの Python のメモリ確保関数を使ってはなりません。 一方、 malloc() と free() を直接呼び出すのは常に安全です。 Py_Decod ...
https://man.mtool.work/python/3.14/c-api/init_config.html
C API Stability 8451
C API Stability 特記のない限り、Python の C API には後方互換性ポリシー PEP 387 が適用されます。 変更の大半はソース互換性を保ちます (通常は新しい API の追加だけを行います)。 既存 API の変更や削除は、非推奨の期間を経た後、または重大な問題を修 ... g() PyMapping_Size() PyMapping_Values() PyMem_Calloc() PyMem_Free() PyMem_Malloc() PyMem_RawCalloc() PyMem_RawFree() PyMem_RawMalloc() PyMem_RawRealloc() PyMem_Realloc() PyMemberDef PyMemberDescr_Type PyMember_GetOne() PyMember_SetOne() PyMemoryView_FromB ...
https://man.mtool.work/python/3.14/c-api/stable.html
インタープリタの初期化と終了処理 8179
インタープリタの初期化と終了処理 初期化前にインタープリタを設定する方法の詳細は、 Python の初期化設定 を参照してください。 Python の初期化前 Python を組み込むアプリケーションでは、一部の関数と グローバルな設定変数 を除き、ほかの Python/C AP ... d() ユーティリティ: Py_DecodeLocale() Python 初期化設定 で説明する状態の報告とユーティリティの関数 メモリアロケータ: PyMem_RawMalloc() PyMem_RawRealloc() PyMem_RawCalloc() PyMem_RawFree() 同期: PyMutex_Lock() PyMutex_Unlock() 注釈 上に挙げた関数の一部と似 ...
https://man.mtool.work/python/3.14/c-api/interp-lifecycle.html
What's New In Python 3.13 7906
What's New In Python 3.13 エディタ : Adam Turner と Thomas Wouters この記事では Python 3.12 と比較した Python 3.13 の新機能を解説します。Python 3.13 は2024年10月7日にリリースされました。全詳細については 変更履歴 をご覧ください。 参考 PEP 71 ... ctor Stinner による gh-106168 での貢献。) Limited C API の変更 次の関数が Limited C API に含まれるようになりました。 PyMem_RawMalloc() PyMem_RawCalloc() PyMem_RawRealloc() PyMem_RawFree() PySys_Audit() PySys_AuditTuple() PyType_GetModuleByDef() (Victor St ...
https://man.mtool.work/python/3.14/whatsnew/3.13.html
What's New In Python 3.4 7906
What's New In Python 3.4 著者 : R. David Murray < rdmurray @ bitdance . com > (編集者) この記事では 3.3 と比較した Python 3.4 の新機能を解説します。 Python 3.4 は2014年3月16日にリリースされました。全詳細については 変更履歴 をご覧ください。 ... 例外をセットすることなく NULL を返すだけでした。 PyOS_ReadlineFunctionPointer コールバックは、エラー時に NULL を返すか PyMem_RawMalloc() または PyMem_RawRealloc() でアロケートした文字列を返さなければなりません。 PyMem_Malloc() や PyMem_Realloc() でアロケート ...
https://man.mtool.work/python/3.14/whatsnew/3.4.html
PREV 1 NEXT