Title: gh-94808: Cover `LOAD_GLOBAL` for custom dict subtypes by sobolevn · Pull Request #96767 · python/cpython · GitHub
Open Graph Title: gh-94808: Cover `LOAD_GLOBAL` for custom dict subtypes by sobolevn · Pull Request #96767 · python/cpython
X Title: gh-94808: Cover `LOAD_GLOBAL` for custom dict subtypes by sobolevn · Pull Request #96767 · python/cpython
Description: I've covered several missing conditions in TARGET(LOAD_GLOBAL): The one where custom globals() dict subtype raises non KeyError: cpython/Python/ceval.c Lines 2445 to 2447 in 53a54b7 if (!_PyErr_ExceptionMatches(tstate, PyExc_KeyError)) { goto error; } Similar case where __builtins__ dict subtype raises non KeyError: cpython/Python/ceval.c Line 2458 in 53a54b7 goto error; Regular NameError in a custom __builtins__ dict subtype: cpython/Python/ceval.c Lines 2453 to 2457 in 53a54b7 if (_PyErr_ExceptionMatches(tstate, PyExc_KeyError)) { format_exc_check_arg( tstate, PyExc_NameError, NAME_ERROR_MSG, name); } Issue: gh-94808
Open Graph Description: I've covered several missing conditions in TARGET(LOAD_GLOBAL): The one where custom globals() dict subtype raises non KeyError: cpython/Python/ceval.c Lines 2...
X Description: I've covered several missing conditions in TARGET(LOAD_GLOBAL): The one where custom globals() dict subtype raises non KeyError: cpython/Python/ceval.c Lin...
Opengraph URL: https://github.com/python/cpython/pull/96767
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:664ce2bf-fcd7-5506-f9f6-98b037d2545c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9ED0:22275E:2201D48:2F4AC8A:69693DE9 |
| html-safe-nonce | 3391da531d30be5377186afdd64467fa1b1bb024bfbf3a4798e43e9a4cacb870 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUQwOjIyMjc1RToyMjAxRDQ4OjJGNEFDOEE6Njk2OTNERTkiLCJ2aXNpdG9yX2lkIjoiMjE0OTE0NTQwMjY4MDA5ODI4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2595e6f87eabb67e33488691662e72d904a74e0d106dd79de17a12cb093ca031 |
| hovercard-subject-tag | pull_request:1053049246 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/96767/files |
| twitter:image | https://avatars.githubusercontent.com/u/4660275?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/4660275?s=400&v=4 |
| og:image:alt | I've covered several missing conditions in TARGET(LOAD_GLOBAL): The one where custom globals() dict subtype raises non KeyError: cpython/Python/ceval.c Lines 2... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width