Title: `_tkinter` leaks type references on initialization · Issue #123504 · python/cpython · GitHub
Open Graph Title: `_tkinter` leaks type references on initialization · Issue #123504 · python/cpython
X Title: `_tkinter` leaks type references on initialization · Issue #123504 · python/cpython
Description: Bug report Bug description: Reproducer: $ ./python -Xshowrefcount -c "import tkinter" Seems to be caused by the use of AddObjectRef on a strong reference in the _tkinter initialization function, causing a double Py_INCREF. CPython versio...
Open Graph Description: Bug report Bug description: Reproducer: $ ./python -Xshowrefcount -c "import tkinter" Seems to be caused by the use of AddObjectRef on a strong reference in the _tkinter initialization function, ca...
X Description: Bug report Bug description: Reproducer: $ ./python -Xshowrefcount -c "import tkinter" Seems to be caused by the use of AddObjectRef on a strong reference in the _tkinter initialization fu...
Opengraph URL: https://github.com/python/cpython/issues/123504
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`_tkinter` leaks type references on initialization","articleBody":"# Bug report\n\n### Bug description:\n\nReproducer:\n```\n$ ./python -Xshowrefcount -c \"import tkinter\"\n```\n\nSeems to be caused by the use of `AddObjectRef` on a strong reference in the `_tkinter` initialization function, causing a double `Py_INCREF`.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-123505\n* gh-123662\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/ZeroIntensity","@type":"Person","name":"ZeroIntensity"},"datePublished":"2024-08-30T13:01:04Z","url":"https://github.com/python/cpython/issues/123504"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:b4aba3f3-7f33-57be-fcc1-9f619d930772 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8BC0:1D3E0A:5C4924:7D0520:6B068104 |
| html-safe-nonce | 9c55cea69ae8683e14e17bb0ca395912d45795e149c6ded1e42de3acfaf47e7f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkMwOjFEM0UwQTo1QzQ5MjQ6N0QwNTIwOjZCMDY4MTA0IiwidmlzaXRvcl9pZCI6Ijc1MjEwMzM3NDc2OTM5OTQyNDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3d019caabafeefa873316dc37c3309259a7c995e94868015354ebba96840fbaa |
| hovercard-subject-tag | issue:2497176368 |
| 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/123504/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6fda648e188b49ee704dce9ba53b85075712922eb068976ada882b36d009aa9b/python/cpython/issues/123504 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6fda648e188b49ee704dce9ba53b85075712922eb068976ada882b36d009aa9b/python/cpython/issues/123504 |
| og:image:alt | Bug report Bug description: Reproducer: $ ./python -Xshowrefcount -c "import tkinter" Seems to be caused by the use of AddObjectRef on a strong reference in the _tkinter initialization function, ca... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ZeroIntensity |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| 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 | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width