Title: Tk 8.7: TIP 577 breaks tkinter.Menu.index() · Issue #103685 · python/cpython · GitHub
Open Graph Title: Tk 8.7: TIP 577 breaks tkinter.Menu.index() · Issue #103685 · python/cpython
X Title: Tk 8.7: TIP 577 breaks tkinter.Menu.index() · Issue #103685 · python/cpython
Description: Bug report One effect of TIP 577 is that as of Tk 8.7, the index command for menus will now return an empty string instead of none, leading to an error in tkinter.Menu.index(): >>> m.index('none') Traceback (most recent call last): File ...
Open Graph Description: Bug report One effect of TIP 577 is that as of Tk 8.7, the index command for menus will now return an empty string instead of none, leading to an error in tkinter.Menu.index(): >>> m.index('none') ...
X Description: Bug report One effect of TIP 577 is that as of Tk 8.7, the index command for menus will now return an empty string instead of none, leading to an error in tkinter.Menu.index(): >>> m.index...
Opengraph URL: https://github.com/python/cpython/issues/103685
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tk 8.7: TIP 577 breaks tkinter.Menu.index()","articleBody":"# Bug report\r\n\r\nOne effect of [TIP 577](https://core.tcl-lang.org/tips/doc/trunk/tip/577.md) is that as of Tk 8.7, the `index` command for menus will now return an empty string instead of `none`, leading to an error in `tkinter.Menu.index()`:\r\n\r\n```\r\n\u003e\u003e\u003e m.index('none')\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/Users/user/git/cpython/Lib/tkinter/__init__.py\", line 3434, in index\r\n return self.tk.getint(i)\r\n ^^^^^^^^^^^^^^^^^\r\n_tkinter.TclError: expected integer but got \"\"\r\n```\r\n\r\nIt should be easy to accommodate both the new and old behavior.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-103686\n* gh-103734\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/chrstphrchvz","@type":"Person","name":"chrstphrchvz"},"datePublished":"2023-04-22T16:11:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/103685/cpython/issues/103685"}
| 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:b5329223-4bd1-f566-9bb3-b4172e7963df |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3E8:152C28:A4D42:EA815:696A60D3 |
| html-safe-nonce | b1986c059d76eb4e5c3bdb6b1f5dfd53ffcf6aee73b298f647429ee868e2a74e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0U4OjE1MkMyODpBNEQ0MjpFQTgxNTo2OTZBNjBEMyIsInZpc2l0b3JfaWQiOiIxMDcxMDU3NzQxNzkxNTE4OTMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 71dcb0bf9119f3dc7a6d5d87652b107ebb87f7aa1325a313f501f7e18340e741 |
| hovercard-subject-tag | issue:1679601516 |
| 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/103685/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7a70eb2ee344db4abf1e3340bc71785da6b24226a01786bb71e1e0be636ed041/python/cpython/issues/103685 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a70eb2ee344db4abf1e3340bc71785da6b24226a01786bb71e1e0be636ed041/python/cpython/issues/103685 |
| og:image:alt | Bug report One effect of TIP 577 is that as of Tk 8.7, the index command for menus will now return an empty string instead of none, leading to an error in tkinter.Menu.index(): >>> m.index('none') ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chrstphrchvz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b7735a184970dd9333b2cbe036c8f3c0a9108c64aaa93827c5a64fc70993392 |
| 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 | 87cbd411c2982752221b5751d583a515b23bf5fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width