Old Man Yells At Cloud

Rhodri James rhodri at kynesim.co.uk
Thu Sep 21 06:19:23 EDT 2017


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



More information about the Python-list mailing list