Title: Refactor `mappingproxy_new_impl` method to use `PyDictProxy_New` · Issue #152546 · python/cpython · GitHub
Open Graph Title: Refactor `mappingproxy_new_impl` method to use `PyDictProxy_New` · Issue #152546 · python/cpython
X Title: Refactor `mappingproxy_new_impl` method to use `PyDictProxy_New` · Issue #152546 · python/cpython
Description: They are located next to each other, use identical code. They should be refactored to be the same thing: cpython/Objects/descrobject.c Lines 1265 to 1296 in 2670cb0 static PyObject * mappingproxy_new_impl(PyTypeObject *type, PyObject *ma...
Open Graph Description: They are located next to each other, use identical code. They should be refactored to be the same thing: cpython/Objects/descrobject.c Lines 1265 to 1296 in 2670cb0 static PyObject * mappingproxy_n...
X Description: They are located next to each other, use identical code. They should be refactored to be the same thing: cpython/Objects/descrobject.c Lines 1265 to 1296 in 2670cb0 static PyObject * mappingproxy_n...
Opengraph URL: https://github.com/python/cpython/issues/152546
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Refactor `mappingproxy_new_impl` method to use `PyDictProxy_New`","articleBody":"They are located next to each other, use identical code.\nThey should be refactored to be the same thing: https://github.com/python/cpython/blob/2670cb062c9ec31cd6df7be645f929a8398601c7/Objects/descrobject.c#L1265-L1296\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-152547\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2026-06-29T07:01:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/152546/cpython/issues/152546"}
| 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:1915e3b8-93ca-0e60-71c9-1e6c21d44455 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8EE4:D1AA1:30A8204:452674B:6A512189 |
| html-safe-nonce | 6254e54862d7b61ce8e2c4cb77fcfdcb93698032f4b3b9a647dbf19928752f13 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUU0OkQxQUExOjMwQTgyMDQ6NDUyNjc0Qjo2QTUxMjE4OSIsInZpc2l0b3JfaWQiOiI5ODUwOTI2MDEyODI2MzQxMjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c5592be90c50ca264d67729965c92ec3398d04264fcd8c91ad14fad20b846031 |
| hovercard-subject-tag | issue:4765795335 |
| 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/152546/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fdf366273391581d08a1913e87af50bda067065a655aa23dbde6090021582e10/python/cpython/issues/152546 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fdf366273391581d08a1913e87af50bda067065a655aa23dbde6090021582e10/python/cpython/issues/152546 |
| og:image:alt | They are located next to each other, use identical code. They should be refactored to be the same thing: cpython/Objects/descrobject.c Lines 1265 to 1296 in 2670cb0 static PyObject * mappingproxy_n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 689b683944b0d7f015d0e776452c970832fa81b82dc15284469b556ecced715b |
| 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 | 942b51ed3bd5feee3d5e2719f890a5fe286edbbb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width