Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You mean `with EXPR as VAR` lets `VAR = EXPR.__enter__()`. Because `with EXPR` also calls `EXPR.__enter__()`, so `with VAR := EXPR` would too.

Seems very unnecessary to have both options.



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

Search: