◐ Shell
clean mode source ↗

bpo-40521: Empty frozenset is no longer a singleton by rhettinger · Pull Request #21085 · python/cpython

Conversation

@rhettinger

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.

https://bugs.python.org/issue40521

vstinner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@vstinner

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

Jun 29, 2020
* 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