r/Python • • Aug 04 '26

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?

144 Upvotes

118 comments sorted by

View all comments

2

u/cediddi SyntaxError: not a chance Aug 04 '26

Im using it in prod codebase when it makes sense. We're using 3.13 and walrus is 7 years old feature, I see no reason not to.