]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108240: Add _PyCapsule_SetTraverse() internal function (#108339)
authorVictor Stinner <vstinner@python.org>
Wed, 23 Aug 2023 22:19:11 +0000 (00:19 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Aug 2023 22:19:11 +0000 (00:19 +0200)
commit513c89d0122ff6245cfefbb49ef32bde8a2336f5
tree4d2b87216c371ec4a2c7e318355698446e33295f
parentb6be18812c68fce5ab56c266dc5fc5a3cceb09c0
gh-108240: Add _PyCapsule_SetTraverse() internal function (#108339)

The _socket extension uses _PyCapsule_SetTraverse() to visit and clear
the socket type in the garbage collector. So the _socket.socket type
can be cleared in some corner cases when it wasn't possible before.
Include/pycapsule.h
Modules/socketmodule.c
Objects/capsule.c