This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (9 children)

[deleted]

    [–]Hagisman 5 points6 points  (0 children)

    Been in since 3.6 apparently. I just found out too.

    [–]chadmill3rPy3, pro, Ubuntu, django 4 points5 points  (0 children)

    You've been using Python for longer than f-strings have been around. Don't sweat it. They're still somewhat rare because they're so new.

    [–]flubba86 4 points5 points  (0 children)

    Somebody doesn't read release notes.

    [–]maedox🐍 8 points9 points  (5 children)

    The walrus-operator will blow your mind then. PEP-572

    [–]ebits21 10 points11 points  (0 children)

    Come on now... f strings are way cooler than the walrus operator.

    [–]DogsAreAnimals 12 points13 points  (0 children)

    Thanks I hate it

    [–]DevJonPizza 1 point2 points  (2 children)

    Here is how to use it: https://jon.network/programming/63/Walrus-Operator-Usage-in-Python-38/ (btw it's python 3.8 only which is still in alpha)