-
-
Notifications
You must be signed in to change notification settings - Fork 656
made changes to the documentaiton of developer in python3 print #36812
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
Conversation
... | ||
SyntaxError: ... | ||
- **Python3 print:** In SageMath code and doctests, adhere to Python 3 | ||
syntax for the print function. Use parentheses as follows::: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need :::
there? Maybe ::
should do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the :
from end of the line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would be more in favour of removing the sentence and the doctest completely, don't you agree @dimpase? There is already so much to read and I don't think that anybody will be assuming python 2 syntax nowadays.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea. It's just very basic python.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes please
@adrinospy, can you add the label "s:needs review"? (you may not have the appropriate rights, I don't know) |
No, no option is there to add label. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
sagemathgh-36812: made changes to the documentaiton of developer in python3 print removed the old python2 print statment information from the developer documentation Fixes sagemath#36807 removed the "Python3 print: Python3 syntax for print must be used in Sage code and doctests. If you use an old-style print in doctests, it will raise a SyntaxError:" and changed it with "In SageMath code and doctests, adhere to Python 3 syntax for the print function. Use parentheses as follows:" URL: sagemath#36812 Reported by: Aman Moon Reviewer(s): Aman Moon, Dima Pasechnik, Martin Rubey
removed the old python2 print statment information from the developer documentation
Fixes #36807
removed the "Python3 print: Python3 syntax for print must be used in Sage code and doctests. If you use an old-style print in doctests, it will raise a SyntaxError:"
and changed it with
"In SageMath code and doctests, adhere to Python 3
syntax for the print function. Use parentheses as follows:"