Title: Streamline family syntax in Tools/cases_generator · Issue #106706 · python/cpython · GitHub
Open Graph Title: Streamline family syntax in Tools/cases_generator · Issue #106706 · python/cpython
X Title: Streamline family syntax in Tools/cases_generator · Issue #106706 · python/cpython
Description: The syntax to designate a family currently looks like this: family(store_subscr, INLINE_CACHE_ENTRIES_STORE_SUBSCR) = { STORE_SUBSCR, STORE_SUBSCR_DICT, STORE_SUBSCR_LIST_INT, }; Here the store_subscr "family name" is redundant (and in f...
Open Graph Description: The syntax to designate a family currently looks like this: family(store_subscr, INLINE_CACHE_ENTRIES_STORE_SUBSCR) = { STORE_SUBSCR, STORE_SUBSCR_DICT, STORE_SUBSCR_LIST_INT, }; Here the store_sub...
X Description: The syntax to designate a family currently looks like this: family(store_subscr, INLINE_CACHE_ENTRIES_STORE_SUBSCR) = { STORE_SUBSCR, STORE_SUBSCR_DICT, STORE_SUBSCR_LIST_INT, }; Here the store_sub...
Opengraph URL: https://github.com/python/cpython/issues/106706
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Streamline family syntax in Tools/cases_generator","articleBody":"The syntax to designate a family currently looks like this:\r\n```\r\n family(store_subscr, INLINE_CACHE_ENTRIES_STORE_SUBSCR) = {\r\n STORE_SUBSCR,\r\n STORE_SUBSCR_DICT,\r\n STORE_SUBSCR_LIST_INT,\r\n };\r\n```\r\nHere the `store_subscr` \"family name\" is redundant (and in fact we even had [one case](https://github.com/python/cpython/pull/104268) where it was incorrect).\r\n\r\nI propose to change it to be more similar to the `pseudo` syntax, so it will become\r\n```\r\n family(STORE_SUBSCR, INLINE_CACHE_ENTRIES_STORE_SUBSCR) = {\r\n STORE_SUBSCR_DICT,\r\n STORE_SUBSCR_LIST_INT,\r\n };\r\n```\r\nThis should be a straightforward change to the parser and code generator in Tools/cases_generator.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-106716\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2023-07-13T02:19:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/106706/cpython/issues/106706"}
| 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:cdd3659e-b88b-0862-4f9d-86acaca0aada |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D858:31F0A2:1DDDC22:29F7304:696A582C |
| html-safe-nonce | 15b508a600c28c9f60ac811994c82ce28376f7e2cf884a8bc42304c6313c4617 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODU4OjMxRjBBMjoxREREQzIyOjI5RjczMDQ6Njk2QTU4MkMiLCJ2aXNpdG9yX2lkIjoiMjY0NjIyNzg2MjIwNDA3ODEyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bf8cfcdbd5eb4a36e4535832d77a8beca257632f6f78d89796ba3c6a6933c76c |
| hovercard-subject-tag | issue:1802025131 |
| 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/106706/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0d5f1fad742912748fb413b3cb9f46cc11f2ec4dfa9a8e48ec0b74079335b874/python/cpython/issues/106706 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0d5f1fad742912748fb413b3cb9f46cc11f2ec4dfa9a8e48ec0b74079335b874/python/cpython/issues/106706 |
| og:image:alt | The syntax to designate a family currently looks like this: family(store_subscr, INLINE_CACHE_ENTRIES_STORE_SUBSCR) = { STORE_SUBSCR, STORE_SUBSCR_DICT, STORE_SUBSCR_LIST_INT, }; Here the store_sub... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gvanrossum |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| 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 | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width