News for hackers. Stuff that matters.
Re:Icecream: Never use print() to debug again in Python by dataflow on Tuesday March 30, 2021 @03:20AM (#26631979)
It's for debugging. Not something to depend on in released code. Put the import in your site initialization file and you won't even have to import it in the REPL.
Re:Icecream: Never use print() to debug again in Python by atoav on Tuesday March 30, 2021 @02:46PM (#26638632)
I understand, but Python >3.8 can do this:

  >>> x = 1+1
  >>> print(f"{x = }")
  x = 2
And if it is included why pulling in a dependency? And even if it is a dev dependency: it can be a dev dependency that bites you in two years in the middle of a night when your service fails.