Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jstimpfle
on July 18, 2019
|
parent
|
context
|
favorite
| on:
What's Coming in Python 3.8
> while evaluating it for truthiness
no, it evaluates to the left side's value after assignment
fatbird
on July 18, 2019
[–]
Well, yes, that's right: the return value of an assignment expression is the left side's value, which is what makes the assignment/evaluation work.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
no, it evaluates to the left side's value after assignment