Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong print for 2.7.9 #67585

Closed
johnboersma mannequin opened this issue Feb 5, 2015 · 3 comments
Closed

Wrong print for 2.7.9 #67585

johnboersma mannequin opened this issue Feb 5, 2015 · 3 comments
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement

Comments

@johnboersma
Copy link
Mannequin

johnboersma mannequin commented Feb 5, 2015

BPO 23396

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2015-02-05.03:07:06.848>
created_at = <Date 2015-02-05.01:12:24.126>
labels = ['type-feature', 'docs']
title = 'Wrong print for 2.7.9'
updated_at = <Date 2015-02-05.03:07:06.800>
user = 'https://bugs.python.org/johnboersma'

bugs.python.org fields:

activity = <Date 2015-02-05.03:07:06.800>
actor = 'python-dev'
assignee = 'docs@python'
closed = True
closed_date = <Date 2015-02-05.03:07:06.848>
closer = 'python-dev'
components = ['Documentation']
creation = <Date 2015-02-05.01:12:24.126>
creator = 'johnboersma'
dependencies = []
files = []
hgrepos = []
issue_num = 23396
keywords = []
message_count = 3.0
messages = ['235414', '235415', '235417']
nosy_count = 3.0
nosy_names = ['docs@python', 'python-dev', 'johnboersma']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue23396'
versions = ['Python 2.7']

@johnboersma
Copy link
Mannequin Author

johnboersma mannequin commented Feb 5, 2015

In the tutorial for 2.7.9, in the section on quotes and the escape character, there is the following example text: 
>>> '"Isn\'t," she said.'
'"Isn\'t," she said.'
>>> 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
'First line.\nSecond line.'
>>> print s  # with print, \n produces a new line
First line.
Second line.

Note the print() in a comment. Isn't that Python 3 syntax? Should just be print for 2.7, I believe.

@johnboersma johnboersma mannequin assigned docspython Feb 5, 2015
@johnboersma johnboersma mannequin added docs Documentation in the Doc dir type-feature A feature request or enhancement labels Feb 5, 2015
@johnboersma
Copy link
Mannequin Author

johnboersma mannequin commented Feb 5, 2015

To clarify - this is in tutorial section 3.1.2.

@python-dev
Copy link
Mannequin

python-dev mannequin commented Feb 5, 2015

New changeset 2bb5fa752bfc by Benjamin Peterson in branch '2.7':
remove parenthesis from print statement (closes bpo-23396)
https://hg.python.org/cpython/rev/2bb5fa752bfc

@python-dev python-dev mannequin closed this as completed Feb 5, 2015
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

0 participants