We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e14465b commit 444d808Copy full SHA for 444d808
src/runtime/Types/ClassBase.cs
@@ -392,7 +392,12 @@ internal static unsafe int BaseUnmanagedClear(BorrowedReference ob)
392
using var dict = Runtime.PyObject_GenericGetDict(ob);
393
if (Runtime.PyMapping_HasKey(dict.Borrow(), PyIdentifier.__clear_reentry_guard__) != 0)
394
return 0;
395
- int res = Runtime.PyDict_SetItem(dict.Borrow(), PyIdentifier.__clear_reentry_guard__, Runtime.None);
+
396
+ int res = Runtime.PyDict_SetItem(
397
+ dict.Borrow(),
398
+ PyIdentifier.__clear_reentry_guard__,
399
+ Runtime.PyTrue
400
+ );
401
if (res != 0) return res;
402
403
res = clear(ob);
0 commit comments