Hacker News new | past | comments | ask | show | jobs | submit login
Python IAQ: Infrequently Answered Questions (norvig.com)
15 points by behnamoh 9 months ago | hide | past | favorite | 2 comments



FYI, In the article: > I believe it is the same reason why Python does not allow assignments in expressions: Python wants to clearly separate statements and expressions

...Isn't quite right:

https://docs.python.org/3/whatsnew/3.8.html > There is new syntax := that assigns values to variables as part of a larger expression

Very interesting post though


The Walrus operator is pretty limited tho, as are lambdas in Python.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: