From eba86f81e3374608fccec1bb5a9f7454916875ce Mon Sep 17 00:00:00 2001 From: DonnaDia <0dvd0bvb0@gmail.com> Date: Fri, 27 Aug 2021 10:12:57 +0300 Subject: [PATCH 1/4] rephrased the phrase --- Doc/howto/functional.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Doc/howto/functional.rst b/Doc/howto/functional.rst index 74e861480d2ff8..56152c6485b5a2 100644 --- a/Doc/howto/functional.rst +++ b/Doc/howto/functional.rst @@ -65,11 +65,10 @@ output must only depend on its input. Some languages are very strict about purity and don't even have assignment statements such as ``a=3`` or ``c = a + b``, but it's difficult to avoid all -side effects. Printing to the screen or writing to a disk file are side -effects, for example. For example, in Python a call to the :func:`print` or -:func:`time.sleep` function both return no useful value; they're only called for -their side effects of sending some text to the screen or pausing execution for a -second. +side effects - such as printing to the screen or writing to a disk file. Another +example - a call to the :func:`print` or :func:`time.sleep` function both return +no useful value; they're only called for their side effects of sending some text +to the screen or pausing execution for a second. Python programs written in functional style usually won't go to the extreme of avoiding all I/O or all assignments; instead, they'll provide a From 3f5198fdd5e7d36a121e5f4bb321385047f7cbb8 Mon Sep 17 00:00:00 2001 From: DonnaDia <0dvd0bvb0@gmail.com> Date: Wed, 1 Sep 2021 19:05:10 +0300 Subject: [PATCH 2/4] removed extra dashes --- Doc/howto/functional.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/howto/functional.rst b/Doc/howto/functional.rst index 56152c6485b5a2..4d966f94576d7c 100644 --- a/Doc/howto/functional.rst +++ b/Doc/howto/functional.rst @@ -65,8 +65,8 @@ output must only depend on its input. Some languages are very strict about purity and don't even have assignment statements such as ``a=3`` or ``c = a + b``, but it's difficult to avoid all -side effects - such as printing to the screen or writing to a disk file. Another -example - a call to the :func:`print` or :func:`time.sleep` function both return +side effects be it printing to the screen or writing to a disk file. Another +example is a call to the :func:`print` or :func:`time.sleep` function both return no useful value; they're only called for their side effects of sending some text to the screen or pausing execution for a second. From 5fb3b59c4f0722172b65e358a6465732ab703697 Mon Sep 17 00:00:00 2001 From: DonnaDia <0dvd0bvb0@gmail.com> Date: Wed, 1 Sep 2021 19:06:52 +0300 Subject: [PATCH 3/4] added a small correction --- Doc/howto/functional.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/howto/functional.rst b/Doc/howto/functional.rst index 4d966f94576d7c..2e2f04bcf09a07 100644 --- a/Doc/howto/functional.rst +++ b/Doc/howto/functional.rst @@ -66,7 +66,7 @@ output must only depend on its input. Some languages are very strict about purity and don't even have assignment statements such as ``a=3`` or ``c = a + b``, but it's difficult to avoid all side effects be it printing to the screen or writing to a disk file. Another -example is a call to the :func:`print` or :func:`time.sleep` function both return +example is a call to the :func:`print` or :func:`time.sleep` function as both return no useful value; they're only called for their side effects of sending some text to the screen or pausing execution for a second. From 86d297f1e5198b85c9372c66f8c8f8c3abc1d584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Wed, 6 Oct 2021 00:14:17 +0200 Subject: [PATCH 4/4] Rephrase for punctuation and 79 char limit --- Doc/howto/functional.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/howto/functional.rst b/Doc/howto/functional.rst index 2e2f04bcf09a07..c7f8bc8f17f43b 100644 --- a/Doc/howto/functional.rst +++ b/Doc/howto/functional.rst @@ -65,10 +65,10 @@ output must only depend on its input. Some languages are very strict about purity and don't even have assignment statements such as ``a=3`` or ``c = a + b``, but it's difficult to avoid all -side effects be it printing to the screen or writing to a disk file. Another -example is a call to the :func:`print` or :func:`time.sleep` function as both return -no useful value; they're only called for their side effects of sending some text -to the screen or pausing execution for a second. +side effects, such as printing to the screen or writing to a disk file. Another +example is a call to the :func:`print` or :func:`time.sleep` function, neither +of which returns a useful value. Both are called only for their side effects +of sending some text to the screen or pausing execution for a second. Python programs written in functional style usually won't go to the extreme of avoiding all I/O or all assignments; instead, they'll provide a