mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
docs: Better comment for tp_as_async slot
This commit is contained in:
parent
87674ec7d5
commit
beaa5094a2
2 changed files with 4 additions and 2 deletions
|
@ -9,7 +9,8 @@ typedef struct _typeobject {
|
||||||
printfunc tp_print;
|
printfunc tp_print;
|
||||||
getattrfunc tp_getattr;
|
getattrfunc tp_getattr;
|
||||||
setattrfunc tp_setattr;
|
setattrfunc tp_setattr;
|
||||||
PyAsyncMethods *tp_as_async; /* formerly known as tp_compare or tp_reserved */
|
PyAsyncMethods *tp_as_async; /* formerly known as tp_compare (Python 2)
|
||||||
|
or tp_reserved (Python 3) */
|
||||||
reprfunc tp_repr;
|
reprfunc tp_repr;
|
||||||
|
|
||||||
/* Method suites for standard classes */
|
/* Method suites for standard classes */
|
||||||
|
|
|
@ -351,7 +351,8 @@ typedef struct _typeobject {
|
||||||
printfunc tp_print;
|
printfunc tp_print;
|
||||||
getattrfunc tp_getattr;
|
getattrfunc tp_getattr;
|
||||||
setattrfunc tp_setattr;
|
setattrfunc tp_setattr;
|
||||||
PyAsyncMethods *tp_as_async; /* formerly known as tp_compare or tp_reserved */
|
PyAsyncMethods *tp_as_async; /* formerly known as tp_compare (Python 2)
|
||||||
|
or tp_reserved (Python 3) */
|
||||||
reprfunc tp_repr;
|
reprfunc tp_repr;
|
||||||
|
|
||||||
/* Method suites for standard classes */
|
/* Method suites for standard classes */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue