-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Add an empty frozendict singleton #153060
Copy link
Copy link
Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagePerformance or resource usagetype-featureA feature request or enhancementA feature request or enhancement
Description
Activity
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagePerformance or resource usagetype-featureA feature request or enhancementA feature request or enhancement
I propose adding an empty frozendict singleton.
For example, it would be returned on the following operations:
frozendict()frozendict({})frozendict() | frozendict()frozendict() | {}frozendict.fromkeys([])Linked PRs