forked from python-attrs/attrs
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
5a368d8
commit f812ec5
Showing
2 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters