[Python-Dev] PEP 214, extended print statement

Greg Ewing greg@cosc.canterbury.ac.nz
Thu, 17 Aug 2000 16:11:51 +1200 (NZST)


tim_one:

> +1 on changing ">>" to "to" here.

Your +1 might be a bit hasty. I've just realised that
a non-reserved word in that position would be ambiguous,
as can be seen by considering

   print to(myfile), x, y, z

> Then we can introduce
>
>   x = print from myfile, 3

Actually, for the sake of symmetry, I was going to suggest

    input from myfile, x, y ,z

except that the word 'input' is already taken. Bummer.

But wait a moment, we could have

    from myfile input x, y, z

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+