News for hackers. Stuff that matters.
Re:Fstrings.wtf by Veedrac on Sunday July 20, 2025 @02:38PM (#44628013)
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.

There are no comments on this comment yet.