Title: `*` parameter's error messages say `argument` instead of `parameter` · Issue #133436 · python/cpython · GitHub
Open Graph Title: `*` parameter's error messages say `argument` instead of `parameter` · Issue #133436 · python/cpython
X Title: `*` parameter's error messages say `argument` instead of `parameter` · Issue #133436 · python/cpython
Description: Bug report Bug description: Setting two * to a function gets the error message saying * argument as shown below: def func(*, *, param1, param2): pass SyntaxError: * argument may appear only once Setting * after all the parameters gets th...
Open Graph Description: Bug report Bug description: Setting two * to a function gets the error message saying * argument as shown below: def func(*, *, param1, param2): pass SyntaxError: * argument may appear only once Se...
X Description: Bug report Bug description: Setting two * to a function gets the error message saying * argument as shown below: def func(*, *, param1, param2): pass SyntaxError: * argument may appear only once Se...
Opengraph URL: https://github.com/python/cpython/issues/133436
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`*` parameter's error messages say `argument` instead of `parameter`","articleBody":"# Bug report\n\n### Bug description:\n\nSetting two `*` to a function gets the error message saying `* argument` as shown below:\n\n```python\ndef func(*, *, param1, param2):\n pass\n```\n\n\u003e SyntaxError: * argument may appear only once\n\nSetting `*` after all the parameters gets the error message saying `named arguments` as shown below:\n\n```python\ndef func(param1, param2, *):\n pass\n```\n\n\u003e SyntaxError: named arguments must follow bare *\n\nSo, `argument` should be replaced with `parameter` as shown below: \n\n\u003e SyntaxError: duplicate parameter 'param' in function definition\n\n\u003e SyntaxError: named parameters must follow bare *\n\n*You can also see [this issue](https://github.com/python/cpython/issues/133379).\n\n### CPython versions tested on:\n\n3.12\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-133463\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/hyperkai","@type":"Person","name":"hyperkai"},"datePublished":"2025-05-05T13:11:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/133436/cpython/issues/133436"}
| 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:459f6073-5946-3ff7-6ead-2d77a33fa463 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 91A2:38DB1F:BC556C:F5E775:6A5C23B0 |
| html-safe-nonce | e6765f013a4bcf40da8b0e0565fd32f81d1f06fd3d50e8a044fc5b71ed3713f3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUEyOjM4REIxRjpCQzU1NkM6RjVFNzc1OjZBNUMyM0IwIiwidmlzaXRvcl9pZCI6IjI2NTE0MzQ1MTI1MTM4NTI2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 029f084fbf6a80589eb460e7b190995e5e7274d0d569c181462d83a0c3d00ff1 |
| hovercard-subject-tag | issue:3039635691 |
| 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/133436/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bad42260316b2c2f74c53c5acfa28fb41a3ec2443e86535e3c277330ec0eb697/python/cpython/issues/133436 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bad42260316b2c2f74c53c5acfa28fb41a3ec2443e86535e3c277330ec0eb697/python/cpython/issues/133436 |
| og:image:alt | Bug report Bug description: Setting two * to a function gets the error message saying * argument as shown below: def func(*, *, param1, param2): pass SyntaxError: * argument may appear only once Se... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hyperkai |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width