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.

you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 2 years ago (2 children)

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.

  • source
  • hideshow 2 child comments
  • [–] 6 points 2 years ago (1 child)

    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.

  • source
  • parent
  • hideshow 1 child comment