From: Yury Selivanov Date: Wed, 26 Aug 2015 17:03:57 +0000 (-0400) Subject: docs: Better comment for tp_as_async slot X-Git-Tag: v3.6.0a1~1734^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=beaa5094a2ad4cdcbfb463c2037fad5f8da43e68;p=python docs: Better comment for tp_as_async slot --- diff --git a/Doc/includes/typestruct.h b/Doc/includes/typestruct.h index 50c46217bc..9f47899a19 100644 --- a/Doc/includes/typestruct.h +++ b/Doc/includes/typestruct.h @@ -9,7 +9,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 */ diff --git a/Include/object.h b/Include/object.h index 8afcbe96dc..4d286efe34 100644 --- a/Include/object.h +++ b/Include/object.h @@ -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 */