docs: Better comment for tp_as_async slot

This commit is contained in:
Yury Selivanov 2015-08-26 13:03:57 -04:00
parent 87674ec7d5
commit beaa5094a2
2 changed files with 4 additions and 2 deletions

View file

@ -351,7 +351,8 @@ typedef struct _typeobject {
printfunc tp_print;
getattrfunc tp_getattr;
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;
/* Method suites for standard classes */