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

FWIW another way to handle this is a local function with early returns. In this example you can also just use a single regex and most likely win performance too.

:= is so common in other languages, or even other Python statements, that it doesn't bother me at all, but Python is such an imperative-first language that its presence is rarely felt.



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

Search: