From beaa5094a2ad4cdcbfb463c2037fad5f8da43e68 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Wed, 26 Aug 2015 13:03:57 -0400 Subject: docs: Better comment for tp_as_async slot --- Doc/includes/typestruct.h | 3 ++- Include/object.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Doc/includes/typestruct.h b/Doc/includes/typestruct.h index 50c4621..9f47899 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 8afcbe9..4d286ef 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 */ -- cgit v0.12