On Sunday, September 17, 2017 at 9:42:34 AM UTC-5, Steve D'Aprano wrote: > On Sun, 17 Sep 2017 11:51 pm, Tim Golden wrote: > > [Snip: Reasons why print function is better than print statement] > > I've wanted to do all those things, and more. I love the > new print function. For the cost of one extra character, > the closing bracket,
Oops, _two_ characters! What about the opening "bracket"? > [...] > The print statement was only good for the most simple uses. > The print function is a powerful, useful and first-class > component of your programming toolbox. I agree that the new print function is better than the old print statement, but the best solution would have been to keep both. I (like TJG), become frustrated when i forget to type the parenthesis and get a syntax error. And most times, i didn't need the extended functionality of a print function anyway, i just needed a finger-friendly print statement. > > [...] > > Funnily enough, the two arguments most often advanced for > > print-as-function seem to me to cancel each other out. > > Arguments by whom? There's a whole raft of things wrong > with print as a statement. The print statement lacks the intuitive features of a function, but most times, you don't need these features. "PRACTICALITY BEATS PURITY" -- https://mail.python.org/mailman/listinfo/python-list