Title: The globals argument to eval() should accept frozendict · Issue #145055 · python/cpython · GitHub
Open Graph Title: The globals argument to eval() should accept frozendict · Issue #145055 · python/cpython
X Title: The globals argument to eval() should accept frozendict · Issue #145055 · python/cpython
Description: >>> eval('word', globals=frozendict({'word': 'hello'})) Traceback (most recent call last): File "
Open Graph Description: >>> eval('word', globals=frozendict({'word': 'hello'})) Traceback (most recent call last): File "
X Description: >>> eval('word', globals=frozendict({'word': 'hello'})) Traceback (most recent call last): File "<pyshell#19>", line 1, in <module> eval('...
Opengraph URL: https://github.com/python/cpython/issues/145055
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The globals argument to eval() should accept frozendict","articleBody":"```python\n\u003e\u003e\u003e eval('word', globals=frozendict({'word': 'hello'}))\nTraceback (most recent call last):\n File \"\u003cpyshell#19\u003e\", line 1, in \u003cmodule\u003e\n eval('word', globals=frozendict({'word': 'hello'}))\nTypeError: globals must be a real dict; try eval(expr, {}, mapping)\n```\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-145072\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/rhettinger","@type":"Person","name":"rhettinger"},"datePublished":"2026-02-20T22:36:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/145055/cpython/issues/145055"}
| 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:0ae41dc5-3f47-615b-a02c-eb93a207e660 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C85A:D9FFD:4C3E8C5:6BCDD12:6A500FF8 |
| html-safe-nonce | 8e45ba24d4a0a014def52b3072e6414452158ad274a7a1b9f7a295edbbfd7e8d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODVBOkQ5RkZEOjRDM0U4QzU6NkJDREQxMjo2QTUwMEZGOCIsInZpc2l0b3JfaWQiOiI4NDY0NTgxNDg1MDA5MDQ3NTQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fd69d7f66c09572fb5653464eb5e22cf533bf47bb6573982a088ea5409f53add |
| hovercard-subject-tag | issue:3970653061 |
| 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/145055/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9ebb248afcbee4c8ddac3f60a710abea232aa77b3dc1d1877caa86b562025b2b/python/cpython/issues/145055 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9ebb248afcbee4c8ddac3f60a710abea232aa77b3dc1d1877caa86b562025b2b/python/cpython/issues/145055 |
| og:image:alt | >>> eval('word', globals=frozendict({'word': 'hello'})) Traceback (most recent call last): File " |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rhettinger |
| hostname | github.com |
| expected-hostname | github.com |
| None | fe4f38b24922a1ce81c1708c3793b47c185599b9144ab94f6ca846b00698058d |
| 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 | 42b6390c91978a16f9196c38c7a00e9bf21f37e7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width