]> granicus.if.org Git - python/commitdiff
docs: Better comment for tp_as_async slot
authorYury Selivanov <yselivanov@sprymix.com>
Wed, 26 Aug 2015 17:03:57 +0000 (13:03 -0400)
committerYury Selivanov <yselivanov@sprymix.com>
Wed, 26 Aug 2015 17:03:57 +0000 (13:03 -0400)
Doc/includes/typestruct.h
Include/object.h

index 50c46217bc41c78d990014a2430e1eb0c4621839..9f47899a198e01af913624f5bb3b36fb8bd553a1 100644 (file)
@@ -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 */
index 8afcbe96dc7926c2c72109d08f45753518c9b668..4d286efe34deb29d27224e0e64246dbab20ec564 100644 (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 */