]> granicus.if.org Git - python/commitdiff
Issue #27993: Fix problems with the plural “objects” in docs and comments
authorMartin Panter <vadmium+py@gmail.com>
Thu, 8 Sep 2016 05:39:59 +0000 (05:39 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Thu, 8 Sep 2016 05:39:59 +0000 (05:39 +0000)
Doc/library/argparse.rst
Doc/library/weakref.rst
Doc/library/xml.dom.rst
Lib/inspect.py
Lib/json/tests/test_decode.py
Misc/HISTORY
Misc/NEWS

index bdc699f6b98c9362c290cc61395c10f84a11f2e9..af3489597d120e4b53c02e2a40ea6e33d359bf9c 100644 (file)
@@ -181,7 +181,7 @@ The following sections describe how each of these are used.
 prog
 ^^^^
 
-By default, :class:`ArgumentParser` objects uses ``sys.argv[0]`` to determine
+By default, :class:`ArgumentParser` objects use ``sys.argv[0]`` to determine
 how to display the name of the program in help messages.  This default is almost
 always desirable because it will make the help messages match how the program was
 invoked on the command line.  For example, consider a file named
@@ -512,7 +512,7 @@ conflict_handler
 ^^^^^^^^^^^^^^^^
 
 :class:`ArgumentParser` objects do not allow two actions with the same option
-string.  By default, :class:`ArgumentParser` objects raises an exception if an
+string.  By default, :class:`ArgumentParser` objects raise an exception if an
 attempt is made to create an argument with an option string that is already in
 use::
 
index e5a99ea422cbcefb4603a0c031a44d9536925356..afbd6113b8124b3311cdfb5736f09178e36855a4 100644 (file)
@@ -328,7 +328,7 @@ the referent is accessed::
 Example
 -------
 
-This simple example shows how an application can use objects IDs to retrieve
+This simple example shows how an application can use object IDs to retrieve
 objects that it has seen before.  The IDs of the objects can then be used in
 other data structures without forcing the objects to remain alive, but the
 objects can still be retrieved by ID if they do.
index 4d98015b8e16fda29b6b18d757112f1af275d95a..ee1d28c2c84330bdca38e2e2a254c3ff9a7ae32e 100644 (file)
@@ -419,7 +419,7 @@ NodeList Objects
 ^^^^^^^^^^^^^^^^
 
 A :class:`NodeList` represents a sequence of nodes.  These objects are used in
-two ways in the DOM Core recommendation:  the :class:`Element` objects provides
+two ways in the DOM Core recommendation:  an :class:`Element` object provides
 one as its list of child nodes, and the :meth:`getElementsByTagName` and
 :meth:`getElementsByTagNameNS` methods of :class:`Node` return objects with this
 interface to represent query results.
index b08e145f07d9ee681d144e3f1c4e775164cc4a50..6d645bd04653141993157554e7ff2fcdfdb6edb3 100644 (file)
@@ -155,9 +155,8 @@ def isfunction(object):
 def isgeneratorfunction(object):
     """Return true if the object is a user-defined generator function.
 
-    Generator function objects provides same attributes as functions.
-
-    See help(isfunction) for attributes listing."""
+    Generator function objects provide the same attributes as functions.
+    See help(isfunction) for a list of attributes."""
     return bool((isfunction(object) or ismethod(object)) and
                 object.func_code.co_flags & CO_GENERATOR)
 
index 78d7fbb7c6c7e77ed5347ab3e5459fe7ad5f299a..0014546b8284b3ea4449f1ce6496724a47c8edd5 100644 (file)
@@ -43,7 +43,7 @@ class TestDecode(object):
         self.assertEqual(self.loads(s, object_pairs_hook=OrderedDict,
                                     object_hook=lambda x: None),
                          OrderedDict(p))
-        # check that empty objects literals work (see #17368)
+        # check that empty object literals work (see #17368)
         self.assertEqual(self.loads('{}', object_pairs_hook=OrderedDict),
                          OrderedDict())
         self.assertEqual(self.loads('{"empty": {}}',
index fceda8a445529471e3e58c485b887a569e318d6d..5cb263c55c8d8c5a76d37d3a1fc185c8602d4244 100644 (file)
@@ -15145,7 +15145,7 @@ machinery is moved to the new file importdl.c.
 module implementing deepcopy and normal (shallow) copy operations.
 See the library reference manual.
 
-- Documentation strings for many objects types are accessible through
+- Documentation strings for many object types are accessible through
 the __doc__ attribute.  Modules, classes and functions support special
 syntax to initialize the __doc__ attribute: if the first statement
 consists of just a string literal, that string literal becomes the
index 1fc6135d0ef60447178e3b650ff2cebe9219098c..64200d2e5399cdc887aa6b58c7002c374a3c7498 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1865,7 +1865,7 @@ Core and Builtins
 - Issue #21350: Fix file.writelines() to accept arbitrary buffer objects,
   as advertised.  Patch by Brian Kearns.
 
-- Issue #20437: Fixed 43 potential bugs when deleting objects references.
+- Issue #20437: Fixed 43 potential bugs when deleting object references.
 
 - Issue #21134: Fix segfault when str is called on an uninitialized
   UnicodeEncodeError, UnicodeDecodeError, or UnicodeTranslateError object.