per page, with , order by , clip by
Results of 1 - 7 of about 7 for GetItemString (0.006 sec.)
マップ型プロトコル (mapping protocol) 12250
マップ型プロトコル (mapping protocol) PyObject_GetItem() , PyObject_SetItem() , PyObject_DelItem() も参照してください。 int PyMapping_Check ( PyObject * o ) 次に属します: Stable ABI . オブジェクトがマッピングプロトコルを提供するかスライスを ... ジェクト o 中のキーの数を返し、失敗すると -1 を返します。これは、Python の式 len(o) と同じになります。 PyObject * PyMapping_GetItemString ( PyObject * o , const char * key ) 戻り値: 新しい参照。 次に属します: Stable ABI . PyObject_GetItem() と同じですが、 key ... 。 エラーを適切に処理するには、代わりに PyMapping_HasKeyStringWithError() 、 PyMapping_GetOptionalItemString() 、 PyMapping_GetItemString() を使ってください。 PyObject * PyMapping_Keys ( PyObject * o ) 戻り値: 新しい参照。 次に属します: Stable ABI . 成功すると ...
https://man.mtool.work/python/3.14/c-api/mapping.html
Dictionary Objects 10578
Dictionary Objects type PyDictObject この PyObject のサブタイプは Python の辞書オブジェクトを表現します。 PyTypeObject PyDict_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python の辞書を表現します。このオブジェクトは、 ... された 借用参照 が無効になる可能性があります。 強参照 を返す PyDict_GetItemRef() を使うことを推奨します。 PyObject * PyDict_GetItemString ( PyObject * p , const char * key ) 戻り値: 借用参照。 次に属します: Stable ABI . Thread safety: Safe to call from multipl ... ッドビルド では、別のスレッドが同時に辞書を変更すると、返された 借用参照 が無効になる可能性があります。 強参照 を返す PyDict_GetItemStringRef() を使うことを推奨します。 int PyDict_GetItemStringRef ( PyObject * p , const char * key , PyObject * * result ) 次に属 ... Dict PyODict_GetItem ( od , key ) PyDict_GetItem() PyODict_GetItemWithError ( od , key ) PyDict_GetItemWithError() PyODict_GetItemString ( od , key ) PyDict_GetItemString() PyODict_Contains ( od , key ) PyDict_Contains() PyODict_Size ( od ) PyDict_Size() PyOD ...
https://man.mtool.work/python/3.14/c-api/dict.html
C API Stability 9469
C API Stability 特記のない限り、Python の C API には後方互換性ポリシー PEP 387 が適用されます。 変更の大半はソース互換性を保ちます (通常は新しい API の追加だけを行います)。 既存 API の変更や削除は、非推奨の期間を経た後、または重大な問題を修 ... lear() PyDict_Contains() PyDict_Copy() PyDict_DelItem() PyDict_DelItemString() PyDict_GetItem() PyDict_GetItemRef() PyDict_GetItemString() PyDict_GetItemStringRef() PyDict_GetItemWithError() PyDict_Items() PyDict_Keys() PyDict_Merge() PyDict_MergeFromSeq2() P ... PyLong_FromUnsignedNativeBytes() PyLong_FromVoidPtr() PyLong_GetInfo() PyLong_Type PyMap_Type PyMapping_Check() PyMapping_GetItemString() PyMapping_GetOptionalItem() PyMapping_GetOptionalItemString() PyMapping_HasKey() PyMapping_HasKeyString() PyMapping_HasK ...
https://man.mtool.work/python/3.14/c-api/stable.html
GDB による C API 拡張と CPython 内部のデバッグ 9469
GDB による C API 拡張と CPython 内部のデバッグ このドキュメントでは、Python の GDB 拡張 python-gdb.py を GDB デバッガと組み合わせて、CPython 拡張や CPython インタープリタ自体をデバッグする方法を説明します。 クラッシュやデッドロックなどの低レ ... 0d94 in PyUnicodeUCS2_FromString (u=0x5c2b8d "__lltrace__") at Objects/unicodeobject.c:569 #8 0x0000000000584abd in PyDict_GetItemString (v= {'Yuck': <type at remote 0xad4730>, '__builtins__': <module at remote 0x7ffff7fd5ee8>, '__file__': 'Lib/test/crashers/ ... ', 'z': <Yuck(i=0) at remote 0xaace60>, '__doc__': None}, key= 0x5c2b8d "__lltrace__") at Objects/dictobject.c:2171 PyDict_GetItemString の引数の辞書が、内部の分からない PyObject * ポインタではなく repr() の結果として表示されている点に注目してください。 この拡 ...
https://man.mtool.work/python/3.14/howto/gdb_helpers.html
C API 拡張のフリースレッド対応 7815
C API 拡張のフリースレッド対応 CPython 3.13 から、 global interpreter lock (GIL) を無効にして実行する free threading という構成がサポートされています。 このドキュメントでは、C API を使う拡張をフリースレッドに対応させる方法を説明します。 C か ... t_GET_ITEM() PyList_GetItemRef() PyDict_GetItem() PyDict_GetItemRef() PyDict_GetItemWithError() PyDict_GetItemRef() PyDict_GetItemString() PyDict_GetItemStringRef() PyDict_SetDefault() PyDict_SetDefaultRef() PyDict_Next() なし ( PyDict_Next を参照) PyWeakref_ ...
https://man.mtool.work/python/3.14/howto/free-threading-extensions.html
What's New In Python 3.13 7252
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 ... nst char * のバイト文字列として指定します。 (Victor Stinner による gh-108314 での貢献。) PyDict_GetItemRef() 関数と PyDict_GetItemStringRef() 関数が追加されました。 PyDict_GetItemWithError() と似た動作をしますが、 借用参照 の代わりに 強参照 を返します。 また、 ... も KeyError を送出しません。 (Stefan Behnel and Victor Stinner による gh-111262 での貢献。) PyObject_GetItem() と PyMapping_GetItemString() の代替として、それぞれ PyMapping_GetOptionalItem() 関数と PyMapping_GetOptionalItemString() 関数が追加されました。 これら ... が PyUnstable_Code_GetFirstFree() に変わりました。 (Bogdan Romanyuk による gh-115781 での貢献。) PyDict_GetItem() 、 PyDict_GetItemString() 、 PyMapping_HasKey() 、 PyMapping_HasKeyString() 、 PyObject_HasAttr() 、 PyObject_HasAttrString() 、 PySys_GetObject() ...
https://man.mtool.work/python/3.14/whatsnew/3.13.html
1. Extending Python with C or C++ 6706
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 ... だし、こちらはよく使う関数にも例外があり、少し複雑です。 PyTuple_GetItem() 、 PyList_GetItem() 、 PyDict_GetItem() 、 PyDict_GetItemString() はいずれも、タプル、リスト、辞書から借用した参照を返します。 PyImport_AddModule() は、実際にはオブジェクトを生成して返す ...
https://man.mtool.work/python/3.14/extending/extending.html
PREV 1 NEXT