per page, with , order by , clip by
Results of 1 - 10 of about 26 for refcnt (0.007 sec.)
参照カウント — Python 3.14.8 ドキュメント 13621
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 参照カウント テーマ 自動 ライト ダーク | 参照カウント ¶ このセクションにある関数とマクロは、 Python オブジェクトの参照カウントの管 ... 理に使用されます。 Py_ssize_t Py_REFCNT ( PyObject * o ) ¶ 次に属します: Stable ABI (バージョン 3.14 より). Python オブジェクト o の参照カウントを取得します。 戻り ... 。したがって、 0 か 1 の値以外では、正確な戻り値に頼らないでください。 オブジェクトの参照カウントを設定するためには、 Py_SET_REFCNT() 関数を使用してください。 注釈 On free-threaded builds of Python, returning 1 isn't sufficient to determine if it's safe ... ced() for that instead. See also the function PyUnstable_Object_IsUniqueReferencedTemporary() . バージョン 3.10 で変更: Py_REFCNT() は static なインライン関数に変更されました。 バージョン 3.11 で変更: 引数の型は const PyObject * ではなくなりました。 vo ...
https://man.mtool.work/python/3.14/c-api/refcounting.html
参照カウント — Python 3.14.8 ドキュメント 12629
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 参照カウント テーマ 自動 ライト ダーク | 参照カウント ¶ このセクションにある関数とマクロは、 Python オブジェクトの参照カウントの管 ... 理に使用されます。 Py_ssize_t Py_REFCNT ( PyObject * o ) ¶ 次に属します: Stable ABI (バージョン 3.14 より). Python オブジェクト o の参照カウントを取得します。 戻り ... 。したがって、 0 か 1 の値以外では、正確な戻り値に頼らないでください。 オブジェクトの参照カウントを設定するためには、 Py_SET_REFCNT() 関数を使用してください。 注釈 On free-threaded builds of Python, returning 1 isn't sufficient to determine if it's safe ... ced() for that instead. See also the function PyUnstable_Object_IsUniqueReferencedTemporary() . バージョン 3.10 で変更: Py_REFCNT() は static なインライン関数に変更されました。 バージョン 3.11 で変更: 引数の型は const PyObject * ではなくなりました。 vo ...
https://man.mtool.work/python/3.14/c-api/refcounting.html
What's New In Python 3.10 — Python 3.14.8 ドキュメント 9836
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.10 テーマ 自動 ライト ダーク | What's New In Python 3.10 ¶ 編集者 : Pablo Galindo Salgado この記事では Python 3.9 と ... F() and Py_DECREF() functions are now implemented as opaque function calls, rather than accessing directly the PyObject.ob_refcnt member, if Python is built in debug mode and the Py_LIMITED_API macro targets Python 3.10 or newer. It became possible to ... u# , y# , z# , U# and Z# . See 引数の解釈と値の構築 and PEP 353 . (Contributed by Victor Stinner in bpo-40943 .) Since Py_REFCNT() is changed to the inline static function, Py_REFCNT(obj) = new_refcnt must be replaced with Py_SET_REFCNT(obj, new_refcn ... t) : see Py_SET_REFCNT() (available since Python 3.9). For backward compatibility, this macro can be used: #if PY_VERSION_HEX < 0x030900A4 # defi ...
https://man.mtool.work/python/3.14/whatsnew/3.10.html
What's New In Python 3.10 — Python 3.14.8 ドキュメント 9836
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.10 テーマ 自動 ライト ダーク | What's New In Python 3.10 ¶ 編集者 : Pablo Galindo Salgado この記事では Python 3.9 と ... F() and Py_DECREF() functions are now implemented as opaque function calls, rather than accessing directly the PyObject.ob_refcnt member, if Python is built in debug mode and the Py_LIMITED_API macro targets Python 3.10 or newer. It became possible to ... u# , y# , z# , U# and Z# . See 引数の解釈と値の構築 and PEP 353 . (Contributed by Victor Stinner in bpo-40943 .) Since Py_REFCNT() is changed to the inline static function, Py_REFCNT(obj) = new_refcnt must be replaced with Py_SET_REFCNT(obj, new_refcn ... t) : see Py_SET_REFCNT() (available since Python 3.9). For backward compatibility, this macro can be used: #if PY_VERSION_HEX < 0x030900A4 # defi ...
https://man.mtool.work/python/3.14/whatsnew/3.10.html
共通のオブジェクト構造体 (common object structure) — Python 3.14.8 ドキュメント 9174
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 共通のオブジェクト構造体 (common object structure) テーマ 自動 ライト ... to a Python object can be cast to a PyObject * . The members must not be accessed directly; instead use macros such as Py_REFCNT and Py_TYPE . Py_ssize_t ob_refcnt ¶ 次に属します: Stable ABI . The object's reference count, as returned by Py_REFCNT . D ... o not use this field directly; instead use functions and macros such as Py_REFCNT , Py_INCREF() and Py_DecRef() . The field type may be different from Py_ssize_t , depending on build configuration and pla ... e notion of length . As with PyObject , the members must not be accessed directly; instead use macros such as Py_SIZE , Py_REFCNT and Py_TYPE . Py_ssize_t ob_size ¶ 次に属します: Stable ABI . A size field, whose contents should be considered an object' ...
https://man.mtool.work/python/3.14/c-api/structures.html
共通のオブジェクト構造体 (common object structure) — Python 3.14.8 ドキュメント 9174
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 共通のオブジェクト構造体 (common object structure) テーマ 自動 ライト ... to a Python object can be cast to a PyObject * . The members must not be accessed directly; instead use macros such as Py_REFCNT and Py_TYPE . Py_ssize_t ob_refcnt ¶ 次に属します: Stable ABI . The object's reference count, as returned by Py_REFCNT . D ... o not use this field directly; instead use functions and macros such as Py_REFCNT , Py_INCREF() and Py_DecRef() . The field type may be different from Py_ssize_t , depending on build configuration and pla ... e notion of length . As with PyObject , the members must not be accessed directly; instead use macros such as Py_SIZE , Py_REFCNT and Py_TYPE . Py_ssize_t ob_size ¶ 次に属します: Stable ABI . A size field, whose contents should be considered an object' ...
https://man.mtool.work/python/3.14/c-api/structures.html
オブジェクトプロトコル (object protocol) — Python 3.14.8 ドキュメント 8513
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » オブジェクトプロトコル (object protocol) テーマ 自動 ライト ダーク | オブジェク ... y object as its argument, even if its refcount is 1 : my_list = [ 1 , 2 , 3 ] my_func ( my_list ) See also the function Py_REFCNT() . Added in version 3.14. int PyUnstable_IsImmortal ( PyObject * obj ) ¶ これは Unstable API です。マイナーリリースで予告 ... on is logically equivalent to the following C code, except that it behaves atomically in the free-threaded build : if ( Py_REFCNT ( op ) > 0 ) { Py_INCREF ( op ); return 1 ; } return 0 ; This is intended as a building block for managing weak references ... 変更されることがあります。 Determine if op only has one reference. On GIL-enabled builds, this function is equivalent to Py_REFCNT ( op ) == 1 . On a free-threaded build , this checks if op 's reference count is equal to one and additionally checks if o ...
https://man.mtool.work/python/3.14/c-api/object.html
オブジェクトプロトコル (object protocol) — Python 3.14.8 ドキュメント 8513
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » オブジェクトプロトコル (object protocol) テーマ 自動 ライト ダーク | オブジェク ... y object as its argument, even if its refcount is 1 : my_list = [ 1 , 2 , 3 ] my_func ( my_list ) See also the function Py_REFCNT() . Added in version 3.14. int PyUnstable_IsImmortal ( PyObject * obj ) ¶ これは Unstable API です。マイナーリリースで予告 ... on is logically equivalent to the following C code, except that it behaves atomically in the free-threaded build : if ( Py_REFCNT ( op ) > 0 ) { Py_INCREF ( op ); return 1 ; } return 0 ; This is intended as a building block for managing weak references ... 変更されることがあります。 Determine if op only has one reference. On GIL-enabled builds, this function is equivalent to Py_REFCNT ( op ) == 1 . On a free-threaded build , this checks if op 's reference count is equal to one and additionally checks if o ...
https://man.mtool.work/python/3.14/c-api/object.html
Debugging C API extensions and CPython Internals with GDB — Python 3.14.8 ドキ... 8348
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Debugging C API extensions and CPython Internals with GDB テーマ 自動 ライト ダーク | Debugging C API extensions and CPython Internals with GDB ¶ ... ctypes': <module at remote 0x7ffff7f14360>, '__doc__': None, '__package__': None} (gdb) p *(PyDictObject*)globals $2 = {ob_refcnt = 3, ob_type = 0x3dbdf85820, ma_fill = 5, ma_used = 5, ma_mask = 7, ma_table = 0x63d0f8, ma_lookup = 0x3dbdc7ea70 <lookdic ... can be revealed with a cast to PyLongObject * : (gdb) p *(PyLongObject*)some_python_integer $5 = {ob_base = {ob_base = {ob_refcnt = 8, ob_type = 0x3dad39f5e0}, ob_size = 1}, ob_digit = {42}} A similar confusion can arise with the str type, where the ou ... mplementation details can be revealed with a cast to PyUnicodeObject * : (gdb) p *(PyUnicodeObject*)$6 $8 = {ob_base = {ob_refcnt = 33, ob_type = 0x3dad3a95a0}, length = 12, str = 0x7ffff2128500, hash = 7065186196740147912, state = 1, defenc = 0x0} py- ...
https://man.mtool.work/python/3.14/howto/gdb_helpers.html
Debugging C API extensions and CPython Internals with GDB — Python 3.14.8 ドキ... 8348
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Debugging C API extensions and CPython Internals with GDB テーマ 自動 ライト ダーク | Debugging C API extensions and CPython Internals with GDB ¶ ... ctypes': <module at remote 0x7ffff7f14360>, '__doc__': None, '__package__': None} (gdb) p *(PyDictObject*)globals $2 = {ob_refcnt = 3, ob_type = 0x3dbdf85820, ma_fill = 5, ma_used = 5, ma_mask = 7, ma_table = 0x63d0f8, ma_lookup = 0x3dbdc7ea70 <lookdic ... can be revealed with a cast to PyLongObject * : (gdb) p *(PyLongObject*)some_python_integer $5 = {ob_base = {ob_base = {ob_refcnt = 8, ob_type = 0x3dad39f5e0}, ob_size = 1}, ob_digit = {42}} A similar confusion can arise with the str type, where the ou ... mplementation details can be revealed with a cast to PyUnicodeObject * : (gdb) p *(PyUnicodeObject*)$6 $8 = {ob_base = {ob_refcnt = 33, ob_type = 0x3dad3a95a0}, length = 12, str = 0x7ffff2128500, hash = 7065186196740147912, state = 1, defenc = 0x0} py- ...
https://man.mtool.work/python/3.14/howto/gdb_helpers.html
PREV 1 2 3 NEXT