On 19/09/17 19:31, bartc wrote:
Can't you get around all those with things like sys.stdout.write?

If so, what was the point of having a discrete print statement/function at all?

Simplicity.  It is much easier to explain to a beginner that

    print("Wombats are go!")

will write something to the console rather than expecting them to remember the incantation

    import sys
    sys.stdout.write("Wombats are go!\n")

(That's basically my gripe against print becoming a function in Python3. It makes a lot of sense as has already been pointed out, but it breaks every beginners tutorial.)

--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to