Title: [3.15] gh-151722: Defer GC tracking in frozendict.copy() (GH-152230) by miss-islington · Pull Request #152271 · python/cpython · GitHub
Open Graph Title: [3.15] gh-151722: Defer GC tracking in frozendict.copy() (GH-152230) by miss-islington · Pull Request #152271 · python/cpython
X Title: [3.15] gh-151722: Defer GC tracking in frozendict.copy() (GH-152230) by miss-islington · Pull Request #152271 · python/cpython
Description: Fix _PyDict_Or() and frozendict.copy(): only track the frozendict by the GC once the dictionary is fully initialized. Functions modifying frozendict now ensures that the object is not tracked by the GC (in debug mode). can_modify_dict() checks that _PyObject_GC_IS_TRACKED() is false for frozendicts. dict_merge_api() makes sure that the dictionary is tracked by the GC. (cherry picked from commit 05679f3) Co-authored-by: Victor Stinner vstinner@python.org Issue: gh-151722
Open Graph Description: Fix _PyDict_Or() and frozendict.copy(): only track the frozendict by the GC once the dictionary is fully initialized. Functions modifying frozendict now ensures that the object is not tracked by th...
X Description: Fix _PyDict_Or() and frozendict.copy(): only track the frozendict by the GC once the dictionary is fully initialized. Functions modifying frozendict now ensures that the object is not tracked by th...
Opengraph URL: https://github.com/python/cpython/pull/152271
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:efc30a30-cfc0-1ba5-e392-aba1c2dda597 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E696:9BDE:1A56DB7:246C2CB:6A50101D |
| html-safe-nonce | 96aeb4bbf424557935613916ce55753b28987bc5677d0f2c838a53cc4abb03ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjk2OjlCREU6MUE1NkRCNzoyNDZDMkNCOjZBNTAxMDFEIiwidmlzaXRvcl9pZCI6IjMyMjI3NDU2MTczMjg1MDg5NTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d45195f2e090c8c2fe6b34c14a5307c175297b6bce3d60edb17be6400d58fd68 |
| hovercard-subject-tag | pull_request:3942052863 |
| 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/152271/files |
| twitter:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| og:image:alt | Fix _PyDict_Or() and frozendict.copy(): only track the frozendict by the GC once the dictionary is fully initialized. Functions modifying frozendict now ensures that the object is not tracked by th... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | fe4f38b24922a1ce81c1708c3793b47c185599b9144ab94f6ca846b00698058d |
| 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 | 42b6390c91978a16f9196c38c7a00e9bf21f37e7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width