https://github.com/python/cpython/commit/c336f1c3126203fd6c38050df94e9fe8c0d7f2e2
commit: c336f1c3126203fd6c38050df94e9fe8c0d7f2e2
branch: main
author: Victor Stinner <vstin...@python.org>
committer: vstinner <vstin...@python.org>
date: 2025-05-05T17:04:43+02:00
summary:

Revert "gh-124715: Fix method_dealloc(): use PyObject_GC_UnTrack() (#133199)" 
(#133434)

This reverts commit 662dd294563ce86980c640ad67e3d460a72c9cb9.

The root issue was fixed by the
commit f554237b8ef6c60df651ac17eb0ef0c095cef185.

files:
M Objects/classobject.c

diff --git a/Objects/classobject.c b/Objects/classobject.c
index b5df3d1a41b5f9..58e1d17977322e 100644
--- a/Objects/classobject.c
+++ b/Objects/classobject.c
@@ -244,7 +244,7 @@ static void
 method_dealloc(PyObject *self)
 {
     PyMethodObject *im = _PyMethodObject_CAST(self);
-    PyObject_GC_UnTrack(im);
+    _PyObject_GC_UNTRACK(im);
     if (im->im_weakreflist != NULL)
         PyObject_ClearWeakRefs((PyObject *)im);
     Py_DECREF(im->im_func);

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to