Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explain use of global thread-local variable in repr.
It's not completely obvious to a reader why we need a thread-local "global" variable to track reference cycles in `__repr__` calls, and the test does not currently contain one. This change adds a comment explaining the need and also adds a non-attrs value in the reference cycle of `test_infinite_recursion`.
- Loading branch information