On 6/25/2012 11:35 PM, Steven D'Aprano wrote:
(Rick, don't make me regret communicating with you again.)
On Mon, 25 Jun 2012 19:28:01 -0700, rantingrickjohnson wrote:
However, there is something to be said for "old habits die hard". I
myself lament every time i must type->(, then blah, then->) AGAIN!. My
fingers are hardwired for the old print statement. Damned that Guido and
his mind games!
There's no real difference between typing print(...) and all the other
functions in Python.
Yes there is ... as Rick said, habit. I still sometimes forget ;-(
> Do you lament having to type len(obj) instead of
"len obj" or list(zip(a, b, c)) instead of "list zip a b c"?
No.
Making print a statement in the first place was a mistake, but
fortunately it was a simple enough mistake to rectify once the need for
backward compatibility was relaxed.
Complete agreed. I have used all of sep=, end=, and file= at various times.
--
Terry Jan Reedy
--
http://mail.python.org/mailman/listinfo/python-list