Skip to content

Commit

Permalink
chore: link to C API howto for Python 3.8 quirk
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Aug 1, 2024
1 parent 21603e6 commit 25d664a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/zope/interface/_zope_interface_coptimizations.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,10 @@ typedef struct
static int
SB_traverse(SB* self, visitproc visit, void* arg)
{
/* Visit our 'tp_type' only on Python >= 3.9 */
/* Visit our 'tp_type' only on Python >= 3.9, per
* https://docs.python.org/3/howto/isolating-extensions.html
* #tp-traverse-in-python-3-8-and-lower
*/
#if PY_VERSION_HEX > 0x03090000
Py_VISIT(Py_TYPE(self));
#endif
Expand Down Expand Up @@ -1091,6 +1094,10 @@ typedef struct
static int
LB_traverse(LB* self, visitproc visit, void* arg)
{
/* Visit our 'tp_type' only on Python >= 3.9, per
* https://docs.python.org/3/howto/isolating-extensions.html
* #tp-traverse-in-python-3-8-and-lower
*/
#if PY_VERSION_HEX > 0x03090000
Py_VISIT(Py_TYPE(self));
#endif
Expand Down

0 comments on commit 25d664a

Please sign in to comment.