This makes it easier to print out multiple things at the same time without needing to do a bunch of string concatenation

Easy way you can remember it is thinking s for space and t for tab. When you want to print normally just call print. Otherwise add s for space or t for tab on the end of the function for the separators.

  • OwlPaste@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 day ago

    What you probably want to do is write a global logger where you reference the print variant inside the logger function once and can easily change it on a single place to suit how you want to look at logs.

    • topherclay@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      1 day ago

      in python the print function has a sep argument that has a default value. Making three functions with a different spelling instead of one function with a variable argument seems kinda stinky here.

      • OwlPaste@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 day ago

        Yeah that seems weird don’t it Personally i find a custom logger useful in my projects and not just because of this print weirdness.