Y
Hacker News
new
|
ask
|
show
|
jobs
by
clinta
2534 days ago
Python already has " as " operator that I think is very readable.
with open('file') as f: ... do something ...
I don't know why that didn't come out on top in the debate.
if re.match(...) as m: ... do something ...