Skip to content

Commit 033715f

Browse files
committed
made changes to the documentaiton of developer in python3 print
1 parent 2a9a426 commit 033715f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/doc/en/developer/coding_basics.rst

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,14 +1039,9 @@ written.
10391039
The :ref:`doctest fixer <section-fixdoctests-optional-needs>` uses
10401040
tab stops at columns 48, 56, 64, ... for these tags.
10411041

1042-
- **Python3 print:** Python3 syntax for print must be used in Sage
1043-
code and doctests. If you use an old-style print in doctests, it
1044-
will raise a SyntaxError::
1045-
1046-
sage: print "not like that"
1047-
Traceback (most recent call last):
1048-
...
1049-
SyntaxError: ...
1042+
- **Python3 print:** In SageMath code and doctests, adhere to Python 3
1043+
syntax for the print function. Use parentheses as follows:::
1044+
10501045
sage: print("but like this")
10511046
but like this
10521047

0 commit comments

Comments
 (0)