Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
andreasvc
on Oct 5, 2020
|
parent
|
context
|
favorite
| on:
Python 3.9
Ah, I see. That really doesn't deserve to be called an idiom, it's a clever hack. But it's nice to know about it. It seems less ugly than the walrus operator to me, and it doesn't leak the variable outside of the comprehension.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: