On 20/03/2014 20:50, Marko Rauhamaa wrote:
Mark Lawrence <breamore...@yahoo.co.uk>:

On 20/03/2014 20:30, Marko Rauhamaa wrote:
I must say, though, that Python3 destroyed "print" forever for me. To
avoid nausea, I write sys.stdout.write() in all Python3 code.

Not for me, I was using from __future__ import print_function for
years so got used to typing those two extra brackets, plus print very
kindly inserts the newlines for me.

That very realization helped me wean myself from "print." Its sole
raison d'ĂȘtre is the insertion of the newline, which it would be nicer
to micromanage anyway; that's how it's done in other programming
languages as well: C, perl, guile, ... (Well, ok, "echo" is the
exception.)


Marko


The end keyword argument to the print function defaults to newline but you can make it anything you like, see http://docs.python.org/3/library/functions.html#print

--
My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to