bpo-40521: Empty frozenset is no longer a singleton by rhettinger · Pull Request #21085 · python/cpython
Conversation
Making the empty frozenset a singleton wasn't worth it. Unlike empty strings and empty tuples, these are not common and don't warrant a special case. Taking it out makes the code simpler.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I merged the PR since I'm working on other changes which are in conflict with this PR, like PR #21086.
fasih pushed a commit to fasih/cpython that referenced this pull request
* Revert "bpo-40521: Make the empty frozenset per interpreter (pythonGH-21068)" This reverts commit 261cfed. * bpo-40521: Empty frozensets are no longer singletons * Complete the removal of the frozenset singleton
This file contains hidden or 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