Skip to content

Commit d69968e

Browse files
authored
Merge pull request #497 from plammens/patch-1
Use Python 3 print function in purity.rst
2 parents 20c6430 + fa19825 commit d69968e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/source/purity.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ input ``L`` which may have external state. Consider the following execution:
4545
>>> data = [1, 2, 3]
4646
>>> result = powers(data)
4747
48-
>>> print result
48+
>>> print(result)
4949
[1, 4, 9]
50-
>>> print data
50+
>>> print(data)
5151
[1, 4, 9]
5252
5353
We see that ``powers`` affected the variable ``data``. Users of our function
@@ -59,7 +59,7 @@ Another problem occurs when we run this code in a different context:
5959
6060
>>> data = [1, 2, 3]
6161
>>> result = powers(data)
62-
>>> print result
62+
>>> print(result)
6363
[1, 8, 27]
6464
6565
When we give ``powers`` the same inputs we receive different outputs; how could

0 commit comments

Comments
 (0)