Issue #25523: Further a-to-an corrections new in 3.5
authorMartin Panter <vadmium+py@gmail.com>
Mon, 2 Nov 2015 04:20:33 +0000 (04:20 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Mon, 2 Nov 2015 04:20:33 +0000 (04:20 +0000)
Doc/library/argparse.rst
Doc/reference/datamodel.rst
Doc/whatsnew/3.5.rst
Lib/concurrent/futures/process.py
Lib/signal.py
Lib/unittest/test/test_discovery.py
Misc/NEWS
Modules/_collectionsmodule.c

index 03cad9f1c87e3040cd2243f9435a0d97c12723f9..2877437b9940fa3fa2ffd4b7175a393515845185 100644 (file)
@@ -530,7 +530,7 @@ allow_abbrev
 ^^^^^^^^^^^^
 
 Normally, when you pass an argument list to the
-:meth:`~ArgumentParser.parse_args` method of a :class:`ArgumentParser`,
+:meth:`~ArgumentParser.parse_args` method of an :class:`ArgumentParser`,
 it :ref:`recognizes abbreviations <prefix-matching>` of long options.
 
 This feature can be disabled by setting ``allow_abbrev`` to ``False``::
index 3032dc8d91f32e7a899d105a9ba934811a31c659..764c4916d8764dd62816e5bf2e4118e17b22ab1e 100644 (file)
@@ -2358,7 +2358,7 @@ An *asynchronous iterable* is able to call asynchronous code in its
 ``__aiter__`` implementation, and an *asynchronous iterator* can call
 asynchronous code in its ``__anext__`` method.
 
-Asynchronous iterators can be used in a :keyword:`async for` statement.
+Asynchronous iterators can be used in an :keyword:`async for` statement.
 
 .. method:: object.__aiter__(self)
 
@@ -2393,7 +2393,7 @@ Asynchronous Context Managers
 An *asynchronous context manager* is a *context manager* that is able to
 suspend execution in its ``__aenter__`` and ``__aexit__`` methods.
 
-Asynchronous context managers can be used in a :keyword:`async with` statement.
+Asynchronous context managers can be used in an :keyword:`async with` statement.
 
 .. method:: object.__aenter__(self)
 
index c73d50b38ae6ab284c34696afe6f422e1ae147b3..29d76b111289e33b2ead1a6390e06f82f4f52c07 100644 (file)
@@ -465,7 +465,7 @@ not make an additional system call::
 PEP 475: Retry system calls failing with EINTR
 ----------------------------------------------
 
-A :py:data:`errno.EINTR` error code is returned whenever a system call, that
+An :py:data:`errno.EINTR` error code is returned whenever a system call, that
 is waiting for I/O, is interrupted by a signal.  Previously, Python would
 raise :exc:`InterruptedError` in such case.  This meant that, when writing a
 Python application, the developer had two choices:
index 3dd6da1f0c11dc1875bb42bb67c6daec6fe89119..590edba24eff92a060e8ca8e07b5c67f273e94ed 100644 (file)
@@ -456,7 +456,7 @@ class ProcessPoolExecutor(_base.Executor):
     submit.__doc__ = _base.Executor.submit.__doc__
 
     def map(self, fn, *iterables, timeout=None, chunksize=1):
-        """Returns a iterator equivalent to map(fn, iter).
+        """Returns an iterator equivalent to map(fn, iter).
 
         Args:
             fn: A callable that will take as many arguments as there are
index 371d7128f85183f2fe5b6927f332b8b9c55a58a1..9f05c9198df717fe3214c1e5b1cfb1a0c801af77 100644 (file)
@@ -34,7 +34,7 @@ def _int_to_enum(value, enum_klass):
 
 def _enum_to_int(value):
     """Convert an IntEnum member to a numeric value.
-    If it's not a IntEnum member return the value itself.
+    If it's not an IntEnum member return the value itself.
     """
     try:
         return int(value)
index 8991f3851f60745183dc635f2e3a9a770cc71f1d..55921febf58a648876ad30c4b66d97ab8a4653fb 100644 (file)
@@ -255,12 +255,12 @@ class TestDiscovery(unittest.TestCase):
         self.addCleanup(sys.path.remove, abspath('/foo'))
 
         # Test data: we expect the following:
-        # a listdir to find our package, and a isfile and isdir check on it.
+        # a listdir to find our package, and isfile and isdir checks on it.
         # a module-from-name call to turn that into a module
         # followed by load_tests.
         # then our load_tests will call discover() which is messy
         # but that finally chains into find_tests again for the child dir -
-        # which is why we don't have a infinite loop.
+        # which is why we don't have an infinite loop.
         # We expect to see:
         # the module load tests for both package and plain module called,
         # and the plain module result nested by the package module load_tests
index 81e2a552698eb44191e0b8c1a53655504b94d861..f40fc4132a1d3d247c382dd09151ffccc37173f3 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1990,7 +1990,7 @@ Library
 - Issue #23132: Improve performance and introspection support of comparison
   methods created by functool.total_ordering.
 
-- Issue #19776: Add a expanduser() method on Path objects.
+- Issue #19776: Add an expanduser() method on Path objects.
 
 - Issue #23112: Fix SimpleHTTPServer to correctly carry the query string and
   fragment when it redirects to add a trailing slash.
index 66f5939c60e1fab85dee022c19743271323b3bfa..214872b393f37d0d0a18972a9511b724fadb720b 100644 (file)
@@ -629,7 +629,7 @@ volume rotations should take care not to penalize the common case.
 
 Conceptually, a rotate by one is equivalent to a pop on one side and an
 append on the other.  However, a pop/append pair is unnecessarily slow
-because it requires a incref/decref pair for an object located randomly
+because it requires an incref/decref pair for an object located randomly
 in memory.  It is better to just move the object pointer from one block
 to the next without changing the reference count.