Title: idlelib: stray comma makes `__repr__` format a one-element tuple · Issue #161477 · python/cpython · GitHub
Open Graph Title: idlelib: stray comma makes `__repr__` format a one-element tuple · Issue #161477 · python/cpython
X Title: idlelib: stray comma makes `__repr__` format a one-element tuple · Issue #161477 · python/cpython
Description: Bug report The comma inside the substitution field makes the expression a one-element tuple, so repr() returns ('WidgetRedirector',)(Text<.text>) instead of WidgetRedirector(Text<.text>). The same mistake is duplicated in OriginalCommand...
Open Graph Description: Bug report The comma inside the substitution field makes the expression a one-element tuple, so repr() returns ('WidgetRedirector',)(Text<.text>) instead of WidgetRedirector(Text<.text>). The same ...
X Description: Bug report The comma inside the substitution field makes the expression a one-element tuple, so repr() returns ('WidgetRedirector',)(Text<.text>) instead of WidgetRedirector(Text<....
Opengraph URL: https://github.com/python/cpython/issues/161477
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"idlelib: stray comma makes `__repr__` format a one-element tuple","articleBody":"### Bug report\n\nThe comma inside the substitution field makes the expression a one-element\ntuple, so `repr()` returns `('WidgetRedirector',)(Text\u003c.text>)` instead of\n`WidgetRedirector(Text\u003c.text>)`. The same mistake is duplicated in\n`OriginalCommand.__repr__` in the same file.\n\nhttps://github.com/python/cpython/blob/288cc2bfc83d30cac834abcb4e69c36eda1ef5cb/Lib/idlelib/redirector.py#L49-L51\nhttps://github.com/python/cpython/blob/288cc2bfc83d30cac834abcb4e69c36eda1ef5cb/Lib/idlelib/redirector.py#L145-L146\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE\n\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-161481\n* gh-161521\n* gh-161522\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/PavlNekrasov","@type":"Person","name":"PavlNekrasov"},"datePublished":"2026-11-06T11:16:14Z","url":"https://github.com/python/cpython/issues/161477"}
| 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:94ddee30-d82f-3888-cb56-dec774faa07a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C82E:928E2:34F8A14:4698B48:6B02039D |
| html-safe-nonce | 524aa34f3e22f41a412eced79805eaa987bf2442a35b437ae65f5825b17ddcf0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODJFOjkyOEUyOjM0RjhBMTQ6NDY5OEI0ODo2QjAyMDM5RCIsInZpc2l0b3JfaWQiOiI3NjEwNTgxNDc4MzMwODY4NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2b47249635a33e04ec7ecb231296cca346b5d8c799c07fe1ba28cb0ac29919df |
| hovercard-subject-tag | issue:6241670583 |
| 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/161477/issue_layout |
| twitter:image | https://opengraph.githubassets.com/14e22af0dd3915bef124b196746bd629addadaedb6dad770f7f4c70b101e8807/python/cpython/issues/161477 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/14e22af0dd3915bef124b196746bd629addadaedb6dad770f7f4c70b101e8807/python/cpython/issues/161477 |
| og:image:alt | Bug report The comma inside the substitution field makes the expression a one-element tuple, so repr() returns ('WidgetRedirector',)(Text<.text>) instead of WidgetRedirector(Text<.text>). The same ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PavlNekrasov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width