[Python-3000] [mark at qtrac.eu: Poss. clarification for What's New in Python 3] (original) (raw)
Guido van Rossum guido at python.org
Tue Sep 4 18:23:47 CEST 2007
- Previous message: [Python-3000] [mark at qtrac.eu: Poss. clarification for What's New in Python 3]
- Next message: [Python-3000] Performance Notes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thanks, Mark! Fixed by changing "B\n" into "B". :-)
On 9/3/07, A.M. Kuchling <amk at amk.ca> wrote:
Forwarded: a comment on the 3.0 What's New.
--amk
---------- Forwarded message ---------- From: Mark Summerfield <mark at qtrac.eu> To: comments at amk.ca Date: Sat, 1 Sep 2007 08:55:42 +0100 Subject: Poss. clarification for What's New in Python 3 Hi, In the What's New in Python 3 document you say For example, in Python 2.x, print "A\n", "B\n" would write "A\nB\n"; but in Python 3.0, print("A\n", "B\n") writes "A\n B\n". I would be tempted to change this to: For example, in Python 2.x, print "A\n", "B\n" would write "A\nB\n\n"; but in Python 3.0, print("A\n", "B\n") writes "A\n B\n\n". Python 3's print() has keyword arguments to control what's output between items and what is output at the end, for example, print("A\n", "B\n", sep="", end="") writes "A\nB\n". -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu
Python-3000 mailing list Python-3000 at python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/guido%40python.org
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-3000] [mark at qtrac.eu: Poss. clarification for What's New in Python 3]
- Next message: [Python-3000] Performance Notes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]