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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:4cc9ef84-14b5-967b-ba05-a41235213e2d |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | D01E:8A288:6B6286:917BD9:6969B6F0 |
| html-safe-nonce | e59dd259ef35bb300319a1b8850bbf9a7ca72e40f89f79f6f8b79adf6dd7afe2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDFFOjhBMjg4OjZCNjI4Njo5MTdCRDk6Njk2OUI2RjAiLCJ2aXNpdG9yX2lkIjoiNjIxNjg0NjM2MzkzMzEyODQzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5ec63a2032bbff92307e36257f88964286cf7b1e0a99b21501b0b0ccf189a0e9 |
| hovercard-subject-tag | pull_request:1053049246 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width