summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-08-26 13:03:57 -0400
committerYury Selivanov <yselivanov@sprymix.com>2015-08-26 13:03:57 -0400
commitbeaa5094a2ad4cdcbfb463c2037fad5f8da43e68 (patch)
tree2d63c835527644b9a8ec1b0c92b3e35e8a9893ae
parent87674ec7d51eb99586231fbd6469b10d1f4fa111 (diff)
downloadcpython-git-beaa5094a2ad4cdcbfb463c2037fad5f8da43e68.tar.gz
docs: Better comment for tp_as_async slot
-rw-r--r--Doc/includes/typestruct.h3
-rw-r--r--Include/object.h3
2 files changed, 4 insertions, 2 deletions
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 */