FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-46838: Syntax error improvements for function definitions by pablogsal · Pull Request #31590 · python/cpython · GitHub

/ cpython Public

bpo-46838: Syntax error improvements for function definitions - #31590

Merged
pablogsal merged 3 commits into
python:mainfrom
pablogsal:bpo-46838
Mar 22, 2022
Merged

bpo-46838: Syntax error improvements for function definitions#31590
pablogsal merged 3 commits into
python:mainfrom
pablogsal:bpo-46838

Conversation

pablogsal commented Feb 25, 2022
edited
Loading

Copy link
Copy Markdown
Member

First round of improvements for function definitions.

https://bugs.python.org/issue46838

…38.RB6kEy.rst

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

Copy link
Copy Markdown
Member Author

Thanks @AlexWaygood !!

Andykl commented Feb 26, 2022
edited
Loading

Copy link
Copy Markdown

It's great that all the points for function defenition have worked out.

  1. Do the new rules apply to lambda function parameters?
  2. What will be for def foo(arg1, */, arg2): pass (*/, not /*)? It looks like this case is not covered.

pablogsal commented Mar 3, 2022
edited
Loading

Copy link
Copy Markdown
Member Author
  • Do the new rules apply to lambda function parameters?

No, I will add those in another commit

What will be for def foo(arg1, /, arg2): pass (/, not /*)? It looks like this case is not covered.

I left it uncovered because that's going to be quite rare and I think is not worth the extra rule

pablogsal merged commit 7d810b6 into python:main Mar 22, 2022
pablogsal deleted the bpo-46838 branch March 22, 2022 11:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

5 participants


Back | FazBrowse Home | New Git URL