News for hackers. Stuff that matters.
Re:Icecream: Never use print() to debug again in Python by blisterpeanuts on Tuesday March 30, 2021 @07:34AM (#26633375)
Nice feature. Is there a way to globally enable/disable it? E.g.,

  python3 myscript.py --enableFstringDebugging=true
So that I could get rid of lots of conditional statements, e.g.:

  if debug:
      print (f"some useful debugging info")
Re:Icecream: Never use print() to debug again in Python by OJFord on Tuesday March 30, 2021 @08:02AM (#26633593)
Use a logger, not print, and set log level?
Re:Icecream: Never use print() to debug again in Python by the_jeremy on Thursday April 01, 2021 @11:04AM (#26661323)
No. You should use logging syntax[0] instead.

[0]: https://docs.python.org/3/library/logging.html