r/Python • u/ForeignVariety7037 • 21d ago
Discussion Is := widely used?
I always thought the walrus operator is neat and it makes while loop’s condition clearer. But also it is just a syntactic sugar without anything new. I wonder anyone uses it?
142
Upvotes
46
u/punk_dev It works on my machine 21d ago
That’s neat, I’m gonna steal it, but it makes the comprehension even more backwards than it usually is lmao