From fa19825faa0551f706c9d77113cb730f6d0fdfc7 Mon Sep 17 00:00:00 2001 From: Paolo Lammens Date: Mon, 21 Sep 2020 11:29:03 +0100 Subject: [PATCH] Use Python 3 print function in purity.rst --- doc/source/purity.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/purity.rst b/doc/source/purity.rst index 8674689f..1c967d92 100644 --- a/doc/source/purity.rst +++ b/doc/source/purity.rst @@ -45,9 +45,9 @@ input ``L`` which may have external state. Consider the following execution: >>> data = [1, 2, 3] >>> result = powers(data) - >>> print result + >>> print(result) [1, 4, 9] - >>> print data + >>> print(data) [1, 4, 9] 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: >>> data = [1, 2, 3] >>> result = powers(data) - >>> print result + >>> print(result) [1, 8, 27] When we give ``powers`` the same inputs we receive different outputs; how could