Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
pablogsal merged 3 commits intopython:mainfrompablogsal:bpo-46838
Mar 22, 2022

Conversation

@pablogsal
Copy link
Member

@pablogsalpablogsal commentedFeb 25, 2022
edited
Loading

First round of improvements for function definitions.

https://bugs.python.org/issue46838

…38.RB6kEy.rstCo-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@pablogsal
Copy link
MemberAuthor

Thanks@AlexWaygood !!

AlexWaygood reacted with heart emoji

@Andykl
Copy link

Andykl commentedFeb 26, 2022
edited
Loading

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 fordef foo(arg1, */, arg2): pass (*/, not/*)? It looks like this case is not covered.

@pablogsal
Copy link
MemberAuthor

pablogsal commentedMar 3, 2022
edited
Loading

  • 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

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

Reviewers

@AlexWaygoodAlexWaygoodAlexWaygood left review comments

@lysnikolaoulysnikolaouAwaiting requested review from lysnikolaoulysnikolaou is a code owner

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@pablogsal@Andykl@AlexWaygood@the-knights-who-say-ni@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp