Skip to content

gh-91210: Improve error message when non-default param follows default#95933

Merged
miss-islington merged 5 commits into
python:mainfrom
lysnikolaou:gh91210-default-arguments-error-message
Sep 17, 2022
Merged

gh-91210: Improve error message when non-default param follows default#95933
miss-islington merged 5 commits into
python:mainfrom
lysnikolaou:gh91210-default-arguments-error-message

Conversation

@lysnikolaou
Copy link
Copy Markdown
Member

@lysnikolaou lysnikolaou commented Aug 12, 2022

  • Improve error message when parameter without a default follows one with a default
  • Show same error message when positional-only params precede the default/non-default sequence

Automerge-Triggered-By: GH:lysnikolaou

…default

- Improve error message when parameter without a default follows one
  with a default
- Show same error message when positional-only params precede the
  default/non-default sequence
@lysnikolaou
Copy link
Copy Markdown
Member Author

@pablogsal Very slight nudge on this.

Comment thread Misc/NEWS.d/next/Core and Builtins/2022-08-12-18-13-49.gh-issue-91210.AWMSLj.rst Outdated
Copy link
Copy Markdown
Member

@pablogsal pablogsal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a small nit on the commit message.

Thanks for working on this 🚀

@lysnikolaou
Copy link
Copy Markdown
Member Author

@pablogsal I guess we're not backporting this, correct?

@miss-islington miss-islington merged commit 7e36abb into python:main Sep 17, 2022
@lysnikolaou lysnikolaou deleted the gh91210-default-arguments-error-message branch September 17, 2022 17:09
@pablogsal
Copy link
Copy Markdown
Member

pablogsal commented Sep 17, 2022

@pablogsal I guess we're not backporting this, correct?

Unfortunately, we cannot backport it, since it's technically an improvement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants