Results of 1 - 10 of about 19 for weakrefs (0.040 sec.)
- 弱参照オブジェクト — Python 3.14.8 ドキュメント 13967
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 弱参照オブジェクト テーマ 自動 ライト ダーク | 弱参照オブジェクト ¶ Python は 弱参照
...one or NULL . If ob is not a weakly referenceable object, this will raise TypeError and return NULL . 参考 PyType_SUPPORTS_WEAKREFS() for checking if ob is weakly referenceable. PyObject * PyWeakref_NewProxy ( PyObject * ob , PyObject * callback ) ¶ 戻り...also be None or NULL . If ob weakly referenceable object, this will raise TypeError and return NULL . 参考 PyType_SUPPORTS_WEAKREFS() for checking if ob is weakly referenceable. int PyWeakref_GetRef ( PyObject * ref , PyObject * * pobj ) ¶ 次に属します:...if it is alive, and -1 with an error set if ref is not a weak reference object. Added in version 3.14. void PyObject_ClearWeakRefs ( PyObject * object ) ¶ 次に属します: Stable ABI . This function is called by the tp_dealloc handler to clear weak referen... - https://man.mtool.work/python/3.14/c-api/weakref.html
- 弱参照オブジェクト — Python 3.14.8 ドキュメント 12960
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 弱参照オブジェクト テーマ 自動 ライト ダーク | 弱参照オブジェクト ¶ Python は 弱参照
...one or NULL . If ob is not a weakly referenceable object, this will raise TypeError and return NULL . 参考 PyType_SUPPORTS_WEAKREFS() for checking if ob is weakly referenceable. PyObject * PyWeakref_NewProxy ( PyObject * ob , PyObject * callback ) ¶ 戻り...also be None or NULL . If ob weakly referenceable object, this will raise TypeError and return NULL . 参考 PyType_SUPPORTS_WEAKREFS() for checking if ob is weakly referenceable. int PyWeakref_GetRef ( PyObject * ref , PyObject * * pobj ) ¶ 次に属します:...if it is alive, and -1 with an error set if ref is not a weak reference object. Added in version 3.14. void PyObject_ClearWeakRefs ( PyObject * object ) ¶ 次に属します: Stable ABI . This function is called by the tp_dealloc handler to clear weak referen... - https://man.mtool.work/python/3.14/c-api/weakref.html
- Type Object Structures — Python 3.14.8 ドキュメント 8162
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu
...in any comparisons. Py_ssize_t PyTypeObject . tp_weaklistoffset ¶ While this field is still supported, Py_TPFLAGS_MANAGED_WEAKREF should be used instead, if at all possible. 型のインスタンスが弱参照可能な場合、このフィールドはゼロよりも大きな数になり、イ...体における弱参照リストの先頭を示すオフセットが入ります (GC ヘッダがある場合には無視します); このオフセット値は PyObject_ClearWeakRefs() および PyWeakref_* 関数が利用します。インスタンス構造体には、 NULL に初期化された PyObject * 型のフィールドが入っていなけ...なるリストの先頭です。 バージョン 3.12 で変更: Internals detail: For the static builtin types this is always NULL , even if weakrefs are added. Instead, the weakrefs for each are stored on PyInterpreterState . Use the public C-API or the internal _PyObjec... - https://man.mtool.work/python/3.14/c-api/typeobj.html
- What's New In Python 3.12 — Python 3.14.8 ドキュメント 8162
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.12 テーマ 自動 ライト ダーク | What's New In Python 3.12 ¶ 編集者 : Adam Turner この記事では Python 3.11 と比較した
...D_DICT and Py_TPFLAGS_MANAGED_WEAKREF flags have been added. This allows extensions classes to support object __dict__ and weakrefs with less bookkeeping, using less memory and with faster access. API for performing calls using the vectorcall protocol wa.... To avoid breakage, consider using the existing public C-API instead, or, if necessary, the (internal-only) _PyObject_GET_WEAKREFS_LISTPTR() macro. This internal-only PyTypeObject.tp_subclasses may now not be a valid object pointer. Its type was changed...PyObject_VisitManagedDict() and _PyObject_ClearManagedDict() to traverse and clear their instance's dictionaries. To clear weakrefs, call PyObject_ClearWeakRefs() , as before. The PyUnicode_FSDecoder() function no longer accepts bytes-like paths, like by... - https://man.mtool.work/python/3.14/whatsnew/3.12.html
- 変更履歴 — Python 3.14.8 ドキュメント 8162
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...character is read from the standard input. Patch by Shamil Abdulaev. gh-91636 : While performing garbage collection, clear weakrefs to unreachable objects that are created during running of finalizers. If those weakrefs were are not cleared, they could r...o include Internal/mimalloc if they are already including internal CPython headers. gh-118789 : Add PyUnstable_Object_ClearWeakRefsNoCallbacks() , which clears weakrefs without calling their callbacks. gh-118789 : Restore _PyWeakref_ClearRef that was pre...each thread is currently importing. This helps avoid a reference leak from keeping the list around longer than necessary. Weakrefs are used as GC can't interrupt the cleanup. gh-105481 : The regen-opcode build stage was removed and its work is now done... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- Type Object Structures — Python 3.14.8 ドキュメント 8162
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu
...in any comparisons. Py_ssize_t PyTypeObject . tp_weaklistoffset ¶ While this field is still supported, Py_TPFLAGS_MANAGED_WEAKREF should be used instead, if at all possible. 型のインスタンスが弱参照可能な場合、このフィールドはゼロよりも大きな数になり、イ...体における弱参照リストの先頭を示すオフセットが入ります (GC ヘッダがある場合には無視します); このオフセット値は PyObject_ClearWeakRefs() および PyWeakref_* 関数が利用します。インスタンス構造体には、 NULL に初期化された PyObject * 型のフィールドが入っていなけ...なるリストの先頭です。 バージョン 3.12 で変更: Internals detail: For the static builtin types this is always NULL , even if weakrefs are added. Instead, the weakrefs for each are stored on PyInterpreterState . Use the public C-API or the internal _PyObjec... - https://man.mtool.work/python/3.14/c-api/typeobj.html
- What's New In Python 3.12 — Python 3.14.8 ドキュメント 8162
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.12 テーマ 自動 ライト ダーク | What's New In Python 3.12 ¶ 編集者 : Adam Turner この記事では Python 3.11 と比較した
...D_DICT and Py_TPFLAGS_MANAGED_WEAKREF flags have been added. This allows extensions classes to support object __dict__ and weakrefs with less bookkeeping, using less memory and with faster access. API for performing calls using the vectorcall protocol wa.... To avoid breakage, consider using the existing public C-API instead, or, if necessary, the (internal-only) _PyObject_GET_WEAKREFS_LISTPTR() macro. This internal-only PyTypeObject.tp_subclasses may now not be a valid object pointer. Its type was changed...PyObject_VisitManagedDict() and _PyObject_ClearManagedDict() to traverse and clear their instance's dictionaries. To clear weakrefs, call PyObject_ClearWeakRefs() , as before. The PyUnicode_FSDecoder() function no longer accepts bytes-like paths, like by... - https://man.mtool.work/python/3.14/whatsnew/3.12.html
- 型オブジェクト — Python 3.14.8 ドキュメント 8025
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 型オブジェクト テーマ 自動 ライト ダーク | 型オブジェクト ¶ type PyTypeObject ¶ 次に属
...version tag or a new one was assigned, or 0 if a new tag could not be assigned. Added in version 3.12. int PyType_SUPPORTS_WEAKREFS ( PyTypeObject * type ) ¶ Return true if instances of type support creating weak references, false otherwise. This functio... - https://man.mtool.work/python/3.14/c-api/type.html
- 型オブジェクト — Python 3.14.8 ドキュメント 8025
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 型オブジェクト テーマ 自動 ライト ダーク | 型オブジェクト ¶ type PyTypeObject ¶ 次に属
...version tag or a new one was assigned, or 0 if a new tag could not be assigned. Added in version 3.12. int PyType_SUPPORTS_WEAKREFS ( PyTypeObject * type ) ¶ Return true if instances of type support creating weak references, false otherwise. This functio... - https://man.mtool.work/python/3.14/c-api/type.html
- 変更履歴 — Python 3.14.8 ドキュメント 8025
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...character is read from the standard input. Patch by Shamil Abdulaev. gh-91636 : While performing garbage collection, clear weakrefs to unreachable objects that are created during running of finalizers. If those weakrefs were are not cleared, they could r... - https://man.mtool.work/python/3.14/whatsnew/changelog.html