https://github.com/python/cpython/commit/86f06cb3fbe55db7d8ad5e32698076e5cc5c3c07
commit: 86f06cb3fbe55db7d8ad5e32698076e5cc5c3c07
branch: main
author: Anthony Shaw <[email protected]>
committer: hauntsaninja <[email protected]>
date: 2024-08-24T20:36:42Z
summary:

Remove comment from pystate created in 2003 (#123259)

files:
M Python/pystate.c

diff --git a/Python/pystate.c b/Python/pystate.c
index 4d7bec65ff5c49..54caf373e91d6c 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -2802,16 +2802,11 @@ PyGILState_Release(PyGILState_STATE oldstate)
     }
 
     /* We must hold the GIL and have our thread state current */
-    /* XXX - remove the check - the assert should be fine,
-       but while this is very new (April 2003), the extra check
-       by release-only users can't hurt.
-    */
     if (!holds_gil(tstate)) {
         _Py_FatalErrorFormat(__func__,
                              "thread state %p must be current when releasing",
                              tstate);
     }
-    assert(holds_gil(tstate));
     --tstate->gilstate_counter;
     assert(tstate->gilstate_counter >= 0); /* illegal counter value */
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to