News for hackers. Stuff that matters.
Re:What's Coming in Python 3.8 by joshuamorton on Wednesday July 17, 2019 @04:55PM (#20463916)
It's not that common. There's 1 place where its useful imo (comprehensions to avoid duplicate calls), but even that can be handled case by case, and it certainly isn't a common thing.
Re:What's Coming in Python 3.8 by theli0nheart on Wednesday July 17, 2019 @05:06PM (#20464019)
Disagree. In my experience (albeit, not very long, been writing Python since 2007 or so), assigning to a value and checking for truthiness is a very common pattern.
Re:What's Coming in Python 3.8 by noname120 on Wednesday July 17, 2019 @05:34PM (#20464286)
Very common pattern, confusing nonetheless. It does two different things at once where traditionally Python is explicit and only does one thing at once.
Re:What's Coming in Python 3.8 by nerdponx on Wednesday July 17, 2019 @06:04PM (#20464509)
This is probably the one argument against it that I agree with: I don't actually like it when I see it in other languages!
Re:What's Coming in Python 3.8 by coldtea on Wednesday July 17, 2019 @05:16PM (#20464109)
It's extremely common.

I've had to use a workaround for that every time I've tested a regular expression match that I wanted to process for example. Also problematic in comprehensions...