3 ms·
When I moved to Py3, it was the thing that got me most often. It was annoying. But three things changed to make that less annoying: 1. I got used to it, fairly
by sago 11y ago
When I moved to Py3, it was the thing that got me most often. It was annoying. But three things changed to make that less annoying:
1. I got used to it, fairly quickly. That made me care less.
2. I used print-statement debugging less, and unit tests more. This was a good thing generally.
3. For those times when I did need print to debug, I found I could drop in pprint:
import pprint
print = pprint.pprint
which is very useful. That won me over.
I've rarely needed naked print to do anything but quick testing and debugging (because by the time I have a command line script, I want at least to have a -q option, so I need to run output through some kind of proxy function). The standard arguments for print() (i.e. composability, extra arguments), I've not needed, but the ability to replace it, I rely on totally now.
Of course, YMMV, this is just my experience.