#Python news: Guido accepted PEP 572. Python now has assignment expressions. if (match := )) is not None: print()) filtered_data = [y for x in data if (y := f(x)) is not None]
In other news: PEP 572 (assignment expressions with := operator) will be accepted by Guido in a few days [1]. The latest revision of the PEP [2] is way more refined than the previous ones. [1] [2]
The first alpha release of python3.8 is out! 🐍 It mainly includes the Assignment Expressions, a great tool to simplify nested if, chained comprehensions or while True/if/break
Informational subtweet re: today’s Python news: in case you’re wondering like I was, PEP 572 pertains to Assignment Expressions.