Title: Add an empty frozendict singleton · Issue #153060 · python/cpython · GitHub
Open Graph Title: Add an empty frozendict singleton · Issue #153060 · python/cpython
X Title: Add an empty frozendict singleton · Issue #153060 · python/cpython
Description: 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 gh-153061
Open Graph Description: I propose adding an empty frozendict singleton. For example, it would be returned on the following operations: frozendict() frozendict({}) frozendict() | frozendict() frozendict() | {} frozendict.f...
X Description: I propose adding an empty frozendict singleton. For example, it would be returned on the following operations: frozendict() frozendict({}) frozendict() | frozendict() frozendict() | {} frozendict.f...
Opengraph URL: https://github.com/python/cpython/issues/153060
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add an empty frozendict singleton","articleBody":"I propose adding an empty frozendict singleton.\n\nFor example, it would be returned on the following operations:\n\n* `frozendict()`\n* `frozendict({})`\n* `frozendict() | frozendict()`\n* `frozendict() | {}`\n* `frozendict.fromkeys([])`\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-153061\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2026-07-05T03:25:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/153060/cpython/issues/153060"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d5644164-fac3-55fb-3473-62514c1e766b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A7DE:2C07F4:4E0384:6B7CC1:6A4DCA23 |
| html-safe-nonce | 82f62125f912c7b17a76810c38e9295af1408e20f28a6f3faf70f59dc02e3d03 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0RFOjJDMDdGNDo0RTAzODQ6NkI3Q0MxOjZBNERDQTIzIiwidmlzaXRvcl9pZCI6IjQ5MTIyMzE1NDA3NzM5OTcwOTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 55c3f6db625cad074e3ad053530153e63a955d5d58bad23ae9bdae8e16db8518 |
| hovercard-subject-tag | issue:4811463341 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/153060/issue_layout |
| twitter:image | https://opengraph.githubassets.com/faade1e3632d8417e3badea1d4fc68c5de51081f56fa77bc4b1d6531c2fde0db/python/cpython/issues/153060 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/faade1e3632d8417e3badea1d4fc68c5de51081f56fa77bc4b1d6531c2fde0db/python/cpython/issues/153060 |
| og:image:alt | I propose adding an empty frozendict singleton. For example, it would be returned on the following operations: frozendict() frozendict({}) frozendict() | frozendict() frozendict() | {} frozendict.f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width