r/ProgrammerHumor • • Aug 26 '20

Python goes brrrr

Post image
59.2k Upvotes

789 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Aug 26 '20

[deleted]

36

u/DarthRoach Aug 26 '20

But your friends will bully you for not being pythonic if you do that.

0

u/[deleted] Aug 26 '20

[deleted]

5

u/BrandolynRed Aug 26 '20

I haven't kept up with additions to the language in a while. What does := do? It's a pain to google

0

u/[deleted] Aug 26 '20

[deleted]

4

u/BrandolynRed Aug 26 '20

Thanks, I can see why that's controversial. Tbh I'd prefer the rust style match pep.

→ More replies (3)

3

u/cowardly_lioness Aug 26 '20

It's often called the "walrus operator", which is easier to google than ":=" if you forget its exact function.