File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,10 @@ typedef struct
238
238
static int
239
239
SB_traverse (SB * self , visitproc visit , void * arg )
240
240
{
241
- /* Visit our 'tp_type' only on Python >= 3.9 */
241
+ /* Visit our 'tp_type' only on Python >= 3.9, per
242
+ * https://docs.python.org/3/howto/isolating-extensions.html
243
+ * #tp-traverse-in-python-3-8-and-lower
244
+ */
242
245
#if PY_VERSION_HEX > 0x03090000
243
246
Py_VISIT (Py_TYPE (self ));
244
247
#endif
@@ -1091,6 +1094,10 @@ typedef struct
1091
1094
static int
1092
1095
LB_traverse (LB * self , visitproc visit , void * arg )
1093
1096
{
1097
+ /* Visit our 'tp_type' only on Python >= 3.9, per
1098
+ * https://docs.python.org/3/howto/isolating-extensions.html
1099
+ * #tp-traverse-in-python-3-8-and-lower
1100
+ */
1094
1101
#if PY_VERSION_HEX > 0x03090000
1095
1102
Py_VISIT (Py_TYPE (self ));
1096
1103
#endif
You can’t perform that action at this time.
0 commit comments