Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification needed regarding the use of the Walrus Operator #868

Open
diogofrosario opened this issue Dec 9, 2024 · 1 comment
Open
Assignees
Labels
lang:python The Python language

Comments

@diogofrosario
Copy link

Hello,

I noticed that the current version of the Python style guide does not mention the Walrus Operator (:=), which was introduced in Python 3.8. I believe it would be beneficial to include a section discussing this operator, as it can impact code readability and maintainability. Are there any emerging standards or agreed good & bad practices for Walrus Operators that could be added to your python style guide? If you don't have anything in place maybe you can consider adopting the PEP-572 style guide recommendations as well as the examples provided by Tim Peters in Appendix A.

Thank you for considering this suggestion!

Best regards,
Diogo Rosário

@vapier vapier added the lang:python The Python language label Dec 9, 2024
@vapier
Copy link
Member

vapier commented Dec 9, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang:python The Python language
Projects
None yet
Development

No branches or pull requests

3 participants