r/ProgrammerHumor • • Oct 31 '21

Walrus operator pumpkin

Post image
120 Upvotes

9 comments sorted by

5

u/turtle_mekb Oct 31 '21

wait what programming language uses :=? make?

3

u/aplarsen Oct 31 '21

Python

Pascal has it as well

4

u/thelanman8000 Oct 31 '21

Python from 3.9 onwards

4

u/aplarsen Oct 31 '21

3.8, but yeah

1

u/thelanman8000 Oct 31 '21

wait really? what was new in 3.9 then?

1

u/aplarsen Oct 31 '21

Nothing terribly exciting. Lots of efficiency improvements, from what I could tell.

2

u/caagr98 Oct 31 '21

Dict | operator, list[int] instead of typing.List[int], slightly more flexible decorators, str.removeprefix, and a major rewrite of the parser. Some convenience, but nothing particularly impressive.

1

u/turtle_mekb Oct 31 '21

ah okay, i haven't used python in years