Skip to content

Conversation

@pablogsal
Copy link
Member

@pablogsal pablogsal commented Feb 25, 2022

First round of improvements for function definitions.

https://bugs.python.org/issue46838

@pablogsal
Copy link
Member Author

Thanks @AlexWaygood !!

@Andykl
Copy link

Andykl commented Feb 26, 2022

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
Copy link
Member Author

pablogsal commented Mar 3, 2022

  • 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 pablogsal merged commit 7d810b6 into python:main Mar 22, 2022
@pablogsal pablogsal deleted the bpo-46838 branch March 22, 2022 11:38
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