mirror of
https://github.com/python/cpython.git
synced 2024-11-27 20:04:41 +08:00
GH-99767: update PyTypeObject docs for type watchers (GH-99928)
This commit is contained in:
parent
48e352a241
commit
b7e4f1d97c
@ -147,6 +147,8 @@ Quick Reference
|
||||
+------------------------------------------------+-----------------------------------+-------------------+---+---+---+---+
|
||||
| :c:member:`~PyTypeObject.tp_vectorcall` | :c:type:`vectorcallfunc` | | | | | |
|
||||
+------------------------------------------------+-----------------------------------+-------------------+---+---+---+---+
|
||||
| :c:member:`~PyTypeObject.tp_watched` | char | | | | | |
|
||||
+------------------------------------------------+-----------------------------------+-------------------+---+---+---+---+
|
||||
|
||||
.. [#slots]
|
||||
|
||||
@ -2090,6 +2092,13 @@ and :c:type:`PyType_Type` effectively act as defaults.)
|
||||
.. versionadded:: 3.9 (the field exists since 3.8 but it's only used since 3.9)
|
||||
|
||||
|
||||
.. c:member:: char PyTypeObject.tp_watched
|
||||
|
||||
Internal. Do not use.
|
||||
|
||||
.. versionadded:: 3.12
|
||||
|
||||
|
||||
.. _static-types:
|
||||
|
||||
Static Types
|
||||
|
@ -80,4 +80,7 @@ typedef struct _typeobject {
|
||||
|
||||
destructor tp_finalize;
|
||||
vectorcallfunc tp_vectorcall;
|
||||
|
||||
/* bitset of which type-watchers care about this type */
|
||||
char tp_watched;
|
||||
} PyTypeObject;
|
||||
|
Loading…
Reference in New Issue
Block a user