[Python-checkins] cpython (3.5): docs: Better comment for tp_as_async slot

yury.selivanov python-checkins at python.org
Wed Aug 26 19:04:31 CEST 2015


https://hg.python.org/cpython/rev/9f7f6f7145f4
changeset:   97514:9f7f6f7145f4
branch:      3.5
parent:      97512:ae8ec66adc7f
user:        Yury Selivanov <yselivanov at sprymix.com>
date:        Wed Aug 26 13:03:57 2015 -0400
summary:
  docs: Better comment for tp_as_async slot

files:
  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
--- a/Doc/includes/typestruct.h
+++ b/Doc/includes/typestruct.h
@@ -9,7 +9,8 @@
     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
--- a/Include/object.h
+++ b/Include/object.h
@@ -351,7 +351,8 @@
     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 */

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list