Title: Parameter's error messages say `argument` instead of `parameter` · Issue #133379 · python/cpython · GitHub
Open Graph Title: Parameter's error messages say `argument` instead of `parameter` · Issue #133379 · python/cpython
X Title: Parameter's error messages say `argument` instead of `parameter` · Issue #133379 · python/cpython
Description: Bug report Bug description: Setting the same name parameters gets the error message saying duplicate argument as shown below: def func(param, param): pass SyntaxError: duplicate argument 'param' in function definition Setting * after all...
Open Graph Description: Bug report Bug description: Setting the same name parameters gets the error message saying duplicate argument as shown below: def func(param, param): pass SyntaxError: duplicate argument 'param' in...
X Description: Bug report Bug description: Setting the same name parameters gets the error message saying duplicate argument as shown below: def func(param, param): pass SyntaxError: duplicate argument 'param...
Opengraph URL: https://github.com/python/cpython/issues/133379
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 the same name parameters gets the error message saying `duplicate argument` as shown below:\n\n```python\ndef func(param, param):\n pass\n```\n\n\u003e SyntaxError: duplicate argument 'param' in function definition\n\nSetting `*` after all the parameters gets the error message saying `at least one argument` 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/133436).\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-133382\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/hyperkai","@type":"Person","name":"hyperkai"},"datePublished":"2025-05-04T14:27:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/133379/cpython/issues/133379"}
| 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:ff21c8de-a1f2-eeef-2768-2f1abedacd59 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B78C:33C4D9:7557F4:9B892D:6A5BDE5B |
| html-safe-nonce | d6281ba638bedf5ea2e870b5d14b7e0d6e6871ea451aaf0794b8dcfb03b9ec71 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzhDOjMzQzREOTo3NTU3RjQ6OUI4OTJEOjZBNUJERTVCIiwidmlzaXRvcl9pZCI6IjM1MzQ0ODQyMTc4MDI3NzYxNTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ae97eca0d2102415c2f95ea27a5bf5b95af903f400eab60928d4cc52031589ba |
| hovercard-subject-tag | issue:3038041450 |
| 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/133379/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97e6f1543666666072ca8f5b36ef0402aa1bc094d6f88cb066d50ca04751c4c8/python/cpython/issues/133379 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97e6f1543666666072ca8f5b36ef0402aa1bc094d6f88cb066d50ca04751c4c8/python/cpython/issues/133379 |
| og:image:alt | Bug report Bug description: Setting the same name parameters gets the error message saying duplicate argument as shown below: def func(param, param): pass SyntaxError: duplicate argument 'param' in... |
| 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