[Python-checkins] cpython (3.5): Fix typos and English grammar in documentation and code comment

martin.panter python-checkins at python.org
Sun Jun 12 02:28:43 EDT 2016


https://hg.python.org/cpython/rev/aea854d018f9
changeset: 101919:aea854d018f9
branch: 3.5
parent: 101917:a2482e805dff
user: Martin Panter <vadmium+py at gmail.com>
date: Sun Jun 12 06:14:03 2016 +0000
summary:
 Fix typos and English grammar in documentation and code comment
files:
 Doc/whatsnew/2.0.rst | 2 +-
 Lib/test/test_coroutines.py | 2 +-
 Misc/NEWS | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Doc/whatsnew/2.0.rst b/Doc/whatsnew/2.0.rst
--- a/Doc/whatsnew/2.0.rst
+++ b/Doc/whatsnew/2.0.rst
@@ -506,7 +506,7 @@
 you'd use the :func:`apply` built-in function: ``apply(f, args, kw)`` calls the
 function :func:`f` with the argument tuple *args* and the keyword arguments in
 the dictionary *kw*. :func:`apply` is the same in 2.0, but thanks to a patch
-from Greg Ewing, ``f(*args, **kw)`` as a shorter and clearer way to achieve the
+from Greg Ewing, ``f(*args, **kw)`` is a shorter and clearer way to achieve the
 same effect. This syntax is symmetrical with the syntax for defining
 functions::
 
diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py
--- a/Lib/test/test_coroutines.py
+++ b/Lib/test/test_coroutines.py
@@ -1423,7 +1423,7 @@
 
 with warnings.catch_warnings():
 warnings.simplefilter("error")
- # Test that __aiter__ that returns an asyncronous iterator
+ # Test that __aiter__ that returns an asynchronous iterator
 # directly does not throw any warnings.
 run_async(main())
 self.assertEqual(I, 111011)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -2215,8 +2215,8 @@
 writer failed in BufferedRWPair.close().
 
 - Issue #23622: Unknown escapes in regular expressions that consist of ``'\'``
- and ASCII letter now raise a deprecation warning and will be forbidden in
- Python 3.6.
+ and an ASCII letter now raise a deprecation warning and will be forbidden
+ in Python 3.6.
 
 - Issue #23671: string.Template now allows specifying the "self" parameter as
 a keyword argument. string.Formatter now allows specifying the "self" and
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /