4 ms·
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 cond
by blisterpeanuts 6y ago
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")
- OJFord 6y agoUse a logger, not print, and set log level?
- the_jeremy 6y agoNo. You should use logging syntax[0] instead. [0]: https://docs.python.org/3/library/logging.html https://docs.python.org/3/library/logging.html