per page, with , order by , clip by
Results of 1 - 7 of about 7 for borrowed (0.005 sec.)
弱参照オブジェクト 12832
弱参照オブジェクト Python は 弱参照 を第一級オブジェクト (first-class object) としてサポートします。弱参照を直接実装する二種類の固有のオブジェクト型があります。第一は単純な参照オブジェクトで、第二はオリジナルのオブジェクトに対して可能な限り ... in version 3.13. PyObject * PyWeakref_GetObject ( PyObject * ref ) 戻り値: 借用参照。 次に属します: Stable ABI . Return a borrowed reference to the referenced object from a weak reference, ref . If the referent is no longer live, returns Py_None . 注釈 ... This function returns a borrowed reference to the referenced object. This means that you should always call Py_INCREF() on the object except when it cannot ... be destroyed before the last usage of the borrowed reference. バージョン 3.13 で非推奨、バージョン 3.15 で削除予定: Use PyWeakref_GetRef() instead. PyObject * PyWeakref_GET_ ...
https://man.mtool.work/python/3.14/c-api/weakref.html
デスクリプタオブジェクト (descriptor object) 10414
デスクリプタオブジェクト (descriptor object) "デスクリプタ (descriptor)" は、あるオブジェクトのいくつかの属性について記述したオブジェクトです。デスクリプタオブジェクトは型オブジェクトの辞書内にあります。 PyTypeObject PyProperty_Type 次に属し ... るとラッパーオブジェクトへの 強参照 を返します。 失敗すると例外を設定して NULL を返します。 PyDescr_TYPE ( descr ) Return a borrowed reference to the type that the descriptor descr belongs to. This is accessible as __objclass__ in Python. descr must be a ... ance of one of these types, the behavior is undefined. PyDescr_NAME ( descr ) Return the name of the descriptor descr as a borrowed reference to a str object. This is available as __name__ in Python. descr must be a descriptor object created by one of th ...
https://man.mtool.work/python/3.14/c-api/descriptor.html
共通のオブジェクト構造体 (common object structure) 8688
共通のオブジェクト構造体 (common object structure) Python のオブジェクト型の定義には、多数の構造体が使われます。 この節では、それらの構造体と使い方を説明します。 基本のオブジェクト型とマクロ すべての Python オブジェクトは、メモリ上の表現の先 ... nc が C 関数オブジェクトでない場合、例外を設定して失敗します。 func は NULL であってはいけません。 This function returns a borrowed reference to the "self" object on success, and NULL with an exception set on failure. PyObject * PyCFunction_GET_SELF ( Py ... tSelf() と同じですが、エラーや型のチェックを行いません。 PyTypeObject * PyCFunction_GET_CLASS ( PyObject * func ) Return a borrowed reference to the defining class of func if its ml_flags includes METH_METHOD . Otherwise, return NULL without setting an e ...
https://man.mtool.work/python/3.14/c-api/structures.html
1. Extending Python with C or C++ 8688
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 ... くともでたらめなビットをメモリに上書きしてしまいます。慎重に! 呼び出し側に提供されるオブジェクトへの参照はすべて 借用 参照 (borrowed reference) になります; これらのオブジェクトの参照カウントをデクリメントしてはなりません! 以下にいくつかの呼び出し例を示しま ... eference should not call Py_DECREF() . The borrower must not hold on to the object longer than the owner from which it was borrowed. Using a borrowed reference after the owner has disposed of it risks using freed memory and should be avoided completely [ ...
https://man.mtool.work/python/3.14/extending/extending.html
Function オブジェクト 8342
Function オブジェクト Functionオブジェクト固有の関数はわずかです。 type PyFunctionObject 関数に使われるCの構造体。 In the free-threaded build, direct access to mutable fields requires synchronization if another thread may modify the functio ... 意の別のオブジェクトに設定できます。 In the free-threaded build, if the attribute may be modified concurrently, convert the borrowed reference to a strong reference with Py_XNewRef() immediately, before calling any other Python API. The same applies to Py ...
https://man.mtool.work/python/3.14/c-api/function.html
用語集 7306
用語集 >>> 対話型 シェルにおけるデフォルトの Python プロンプトです。インタープリターで対話的に実行されるコード例でよく見られます。 ... 次のものが考えられます: 対話型 ( interactive ) シェルにおいて、インデントされたコードブロック、対応する左 ... e . のインスタンスです。 str オブジェクトの読み書きができるファイルオブジェクトについては、 text file も参照してください。 borrowed reference (借用参照) Python の C API で、オブジェクトを使うコードが所有していない、そのオブジェクトへの参照です。 オブジェ ...
https://man.mtool.work/python/3.14/glossary.html
What's New In Python 3.13 7306
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 ... and Tian Gao による gh-74929 での貢献。) 定数への 強参照 または 借用参照 を取得する Py_GetConstant() 関数と Py_GetConstantBorrowed() 関数が追加されました。 例えば、 Py_GetConstant(Py_CONSTANT_ZERO) は定数のゼロへの強参照を返します。 (Victor Stinner によ ... nner による gh-105156 での貢献。) Deprecate the PyWeakref_GetObject() and PyWeakref_GET_OBJECT() functions, which return a borrowed reference . Replace them with the new PyWeakref_GetRef() function, which returns a strong reference . The pythoncapi-compa ...
https://man.mtool.work/python/3.14/whatsnew/3.13.html
PREV 1 NEXT