3 ms·
Print as a function is a definite improvement in terms of functionality and API (`print >>fileobj, ...` always looked like syntax from another language). I too
by gvalkov 11y ago
Print as a function is a definite improvement in terms of functionality and API (`print >>fileobj, ...` always looked like syntax from another language). I too though I'd be bothered by the extra (), mainly due to muscle memory, but after spending a week with it, I could hardly feel any inconvenience.
Setting up an abbrev or a snippet also helps. I use these a lot:
p<tab> -> print(|)
pp<tab> -> import pprint; pprint.pprint(|)
- omaranto 11y ago> `print >>fileobj, ...` always looked like syntax from another language Yes, AWK specifically.