per page, with , order by , clip by
Results of 1 - 10 of about 11 for Realloc (0.009 sec.)
メモリ管理 14421
メモリ管理 概要 Python におけるメモリ管理には、全ての Python オブジェクトとデータ構造が入ったプライベートヒープ (private heap) が必須です。プライベートヒープの管理は、内部的には Python メモリマネージャ (Python memory manager) が確実に行いま ... す。Python メモリマネージャには、共有 (sharing)、セグメント分割 (segmentation)、事前割り当て (preallocation)、キャッシュ化 (caching) といった、様々な動的記憶管理の側面を扱うために、個別のコンポーネントがあります。 最低水準層で ... 崩壊を避けるため、拡張モジュールの作者は決して Python オブジェクトを C ライブラリが公開している関数: malloc() 、 calloc() 、 realloc() および free() で操作しようとしてはなりません。こうした関数を使うと、C のメモリ操作関数と Python メモリマネージャとの間で ... ーフなので、 スレッド状態 が アタッチされている 必要はありません。 デフォルトの生メモリアロケータ は malloc() 、 calloc() 、 realloc() 、 free() を使います。 0 バイトの要求には malloc(1) または calloc(1, 1) を呼び出します。 Added in version 3.4. void * Py ...
https://man.mtool.work/python/3.14/c-api/memory.html
ヒープ上でのオブジェクトの割り当て 9122
ヒープ上でのオブジェクトの割り当て PyObject * _PyObject_New ( PyTypeObject * type ) 戻り値: 新しい参照。 PyVarObject * _PyObject_NewVar ( PyTypeObject * type , Py_ssize_t size ) 戻り値: 新しい参照。 PyObject * PyObject_Init ( PyObject * op ... 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_DEL ( p ) PyObject_Free() PyObject_Del ( p ) PyO ...
https://man.mtool.work/python/3.14/c-api/allocation.html
C API Stability 8677
C API Stability 特記のない限り、Python の C API には後方互換性ポリシー PEP 387 が適用されます。 変更の大半はソース互換性を保ちます (通常は新しい API の追加だけを行います)。 既存 API の変更や削除は、非推奨の期間を経た後、または重大な問題を修 ... 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_FromBuffer() PyMemoryVie ... PyObject_IsInstance() PyObject_IsSubclass() PyObject_IsTrue() PyObject_Length() PyObject_Malloc() PyObject_Not() PyObject_Realloc() PyObject_Repr() PyObject_RichCompare() PyObject_RichCompareBool() PyObject_SelfIter() PyObject_SetAttr() PyObject_SetAtt ...
https://man.mtool.work/python/3.14/c-api/stable.html
超高水準レイヤ 8339
超高水準レイヤ この章の関数を使うとファイルまたはバッファにある Python ソースコードを実行できますが、より詳細なやり取りをインタプリタとすることはできないでしょう。 これらの関数の一部は、文法の開始記号を引数に取ります。 利用できる開始記号は ... nterruption; 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() または PyMem_RawReall ...
https://man.mtool.work/python/3.14/c-api/veryhigh.html
モジュールオブジェクト (module object) 8232
モジュールオブジェクト (module object) PyTypeObject PyModule_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python のモジュール型を表します。 Python プログラムには types.ModuleType として公開されています。 int PyModule_C ... n version 3.3. 他のマニュアルの関連ページ Linux JM modules.dep.bin(5) PHP swoole-buffer.append Linux JM calloc(3) Linux JM reallocarray(3) Linux JM realloc(3) Linux JM free(3) ...
https://man.mtool.work/python/3.14/c-api/module.html
What's New in Python 2.3 8232
What's New in Python 2.3 著者 : A.M. Kuchling この文書は Python 2.3 の新機能について解説します。Python 2.3 は 2003 年 7 月 29 日にリリースされました。 Python 2.3 の主要なテーマは、2.2 で追加されたいくつかの機能を磨くこと、言語中核に小さいな ... 化されたものです。 何某かの区別のないメモリの塊を獲得・解放するのには「生メモリ」ファミリを使います: PyMem_Malloc() , PyMem_Realloc() , PyMem_Free() . 「オブジェクトメモリ」ファミリは上述の pymalloc 機構へのインターフェイスであり、多数の「小さな」獲得をす ... るための特化がされています: PyObject_Malloc() , PyObject_Realloc() , PyObject_Free() . Python オブジェクトの獲得と解放には「オブジェクト」ファミリ PyObject_New , PyObject_NewVar , PyObjec ...
https://man.mtool.work/python/3.14/whatsnew/2.3.html
What's New in Python 2.5 8232
What's New in Python 2.5 著者 : A.M. Kuchling この記事では Python 2.5 の新機能を説明します。 Python 2.5 の最終リリースは 2006 年 8 月に予定されており、 PEP 356 にリリース計画が記載されています。 Python 2.5 は 2006 年 9 月 19 日にリリースされ ... あります。 Python の API には多数のメモリ割り当て関数があり、いくつかの系統に分かれています。 例えば PyMem_Malloc() 、 PyMem_Realloc() 、 PyMem_Free() は生のメモリを割り当てる系統で、 PyObject_Malloc() 、 PyObject_Realloc() 、 PyObject_Free() は Python オ ...
https://man.mtool.work/python/3.14/whatsnew/2.5.html
1. Extending Python with C or C++ 8108
1. Extending Python with C or C++ It is quite easy to add new built-in modules to Python, if you know how to program in C. Such extension modules can do two things that can't be done directly in Python: they can implement new built-in objec ... PyErr_Clear() を呼び出すようにすべきです。 malloc() の呼び出し失敗は、常に例外にしなくてはなりません --- malloc() (または realloc() ) を直接呼び出しているコードは、 PyErr_NoMemory() を呼び出して、失敗を示す値を返さねばなりません。オブジェクトを生成する ...
https://man.mtool.work/python/3.14/extending/extending.html
What's New in Python 2.4 8108
What's New in Python 2.4 著者 : A.M. Kuchling この文書は 2005 年 3 月 30 日にリリースされた Python 2.4.1 の新機能について解説します。 Python 2.4 は、真ん中サイズ、のリリースです。急進的だった Python 2.2 ほどには多くの変更をしていませんが、保 ... 貢献です。) リストを拡大・縮小する仕組みが、速度とメモリ効率の両面で最適化されました。 コードの経路が効率化され、システムの realloc() の呼び出し頻度も減ったことで、リストへの追加や取り出しが高速になりました。 リスト内包表記にも効果があります。 list.exten ...
https://man.mtool.work/python/3.14/whatsnew/2.4.html
What's New In Python 3.4 8108
What's New In Python 3.4 著者 : R. David Murray < rdmurray @ bitdance . com > (編集者) この記事では 3.3 と比較した Python 3.4 の新機能を解説します。 Python 3.4 は2014年3月16日にリリースされました。全詳細については 変更履歴 をご覧ください。 ... を返すだけでした。 PyOS_ReadlineFunctionPointer コールバックは、エラー時に NULL を返すか PyMem_RawMalloc() または PyMem_RawRealloc() でアロケートした文字列を返さなければなりません。 PyMem_Malloc() や PyMem_Realloc() でアロケートした文字列はダメです。 ( ...
https://man.mtool.work/python/3.14/whatsnew/3.4.html
PREV 1 2 NEXT