[Python-checkins] cpython (2.7): remove parenthesis from print statement (closes #23396)

benjamin.peterson python-checkins at python.org
Thu Feb 5 04:07:09 CET 2015


https://hg.python.org/cpython/rev/2bb5fa752bfc
changeset: 94511:2bb5fa752bfc
branch: 2.7
user: Benjamin Peterson <benjamin at python.org>
date: Wed Feb 04 22:06:55 2015 -0500
summary:
 remove parenthesis from print statement (closes #23396)
files:
 Doc/tutorial/introduction.rst | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst
--- a/Doc/tutorial/introduction.rst
+++ b/Doc/tutorial/introduction.rst
@@ -170,7 +170,7 @@
 >>> print '"Isn\'t," she said.'
 "Isn't," she said.
 >>> s = 'First line.\nSecond line.' # \n means newline
- >>> s # without print(), \n is included in the output
+ >>> s # without print, \n is included in the output
 'First line.\nSecond line.'
 >>> print s # with print, \n produces a new line
 First line.
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /