Skip to content

Add an empty frozendict singleton #153060

Description

@vstinner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagetype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions