Title: bpo-18533: Avoid RuntimeError from repr() of recursive dictview by bennorth · Pull Request #4823 · python/cpython · GitHub
Open Graph Title: bpo-18533: Avoid RuntimeError from repr() of recursive dictview by bennorth · Pull Request #4823 · python/cpython
X Title: bpo-18533: Avoid RuntimeError from repr() of recursive dictview by bennorth · Pull Request #4823 · python/cpython
Description: (Created as per recent comment on bpo-18533. See issue for further background and discussion.) dictview_repr(): Use a Py_ReprEnter() / Py_ReprLeave() pair to check for recursion, and produce "..." if so. test_recursive_repr(): Check for the correct string (containing "...") rather than a RuntimeError. test_deeply_nested_repr(): Add new test, replacing the original test_recursive_repr(). It checks that a RuntimeError is raised in the case of a non-recursive but deeply nested structure. (Very similar to what test_repr_deep() in test/test_dict.py does for a normal dict.) https://bugs.python.org/issue18533
Open Graph Description: (Created as per recent comment on bpo-18533. See issue for further background and discussion.) dictview_repr(): Use a Py_ReprEnter() / Py_ReprLeave() pair to check for recursion, and produce "...
X Description: (Created as per recent comment on bpo-18533. See issue for further background and discussion.) dictview_repr(): Use a Py_ReprEnter() / Py_ReprLeave() pair to check for recursion, and produce &...
Opengraph URL: https://github.com/python/cpython/pull/4823
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:afb73120-42ab-48fe-c471-f0e451936cb0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CF20:951F5:1461EC:1CFB09:6A4C9688 |
| html-safe-nonce | 1b31b781ba4d4b5d3d66f346fe93f3a1f8fa01c79ca0357c97e99344d5971923 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjIwOjk1MUY1OjE0NjFFQzoxQ0ZCMDk6NkE0Qzk2ODgiLCJ2aXNpdG9yX2lkIjoiODk3ODkyMTU2MTIxNDcxOTYyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | aa8c5c1a6addc418add85b3f90df8ddd326326343c9c7303104dbee715f2ec38 |
| hovercard-subject-tag | pull_request:157954907 |
| 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/4823/files |
| twitter:image | https://avatars.githubusercontent.com/u/9059396?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/9059396?s=400&v=4 |
| og:image:alt | (Created as per recent comment on bpo-18533. See issue for further background and discussion.) dictview_repr(): Use a Py_ReprEnter() / Py_ReprLeave() pair to check for recursion, and produce "... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7a2dede45637df6b92ddcfe2a557e67d4b5854ae |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width