• itsathursday@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 hour ago

    What annoyed me moving from % to format was the loss of “formatting” floats to integers with “{:d}”, now you get a ValueError

  • charokol@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    5 hours ago

    Didn’t think I’d learn anything new in this article, but I never knew about f-string’s self-documenting expression syntax. I’ve been doing it myself like a chump!