Title: We shouldn't lock to clear an object · Issue #130313 · python/cpython · GitHub
Open Graph Title: We shouldn't lock to clear an object · Issue #130313 · python/cpython
X Title: We shouldn't lock to clear an object · Issue #130313 · python/cpython
Description: Feature or enhancement Proposal: Currently we lock to clear the attributes of an object because we just re-use setting a managed dict to NULL. But if we haven't created a managed dictionary then there's no need to lock the object, it's n...
Open Graph Description: Feature or enhancement Proposal: Currently we lock to clear the attributes of an object because we just re-use setting a managed dict to NULL. But if we haven't created a managed dictionary then th...
X Description: Feature or enhancement Proposal: Currently we lock to clear the attributes of an object because we just re-use setting a managed dict to NULL. But if we haven't created a managed dictionary the...
Opengraph URL: https://github.com/python/cpython/issues/130313
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"We shouldn't lock to clear an object","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nCurrently we lock to clear the attributes of an object because we just re-use setting a managed dict to NULL. But if we haven't created a managed dictionary then there's no need to lock the object, it's no longer referenced externally. \n\n### Has this already been discussed elsewhere?\n\nNo response given\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-130126\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/DinoV","@type":"Person","name":"DinoV"},"datePublished":"2025-02-19T18:11:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/130313/cpython/issues/130313"}
| 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:cf5d6904-8b33-7a29-a2f1-8ec32346e9e3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A15C:3D0DAC:1597B6D:1F7E4A5:6A562090 |
| html-safe-nonce | d6df90414edbc03df33a63dcc49e3a2992de97195fabd040233a4f594fec5d89 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTVDOjNEMERBQzoxNTk3QjZEOjFGN0U0QTU6NkE1NjIwOTAiLCJ2aXNpdG9yX2lkIjoiMTY0ODUwMDE3NzYwNTM3MDAwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6e645717f4eef2af33d546de6579e6ce9e459318ed98afabb77b52184227d3a6 |
| hovercard-subject-tag | issue:2864072483 |
| 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/130313/issue_layout |
| twitter:image | https://opengraph.githubassets.com/346120ee9d6b632207e5771b50d1f74ac1845640926fa02fe087f04e67af2ce7/python/cpython/issues/130313 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/346120ee9d6b632207e5771b50d1f74ac1845640926fa02fe087f04e67af2ce7/python/cpython/issues/130313 |
| og:image:alt | Feature or enhancement Proposal: Currently we lock to clear the attributes of an object because we just re-use setting a managed dict to NULL. But if we haven't created a managed dictionary then th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DinoV |
| hostname | github.com |
| expected-hostname | github.com |
| None | eeb71977be324ce2bc7c4afd597296b8e3527d8922ad94632edd7a7296f8031b |
| 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 | 3e7957744c8a44d05ff1e464dc5d119e60b98fae |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width