Skip to content

Commit 1aa642f

Browse files
committed
Issue #27993: Merge plural fixes from 3.5
2 parents 1c748f3 + 0f0eac4 commit 1aa642f

File tree

7 files changed

+10
-11
lines changed

7 files changed

+10
-11
lines changed

Doc/library/argparse.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ The following sections describe how each of these are used.
188188
prog
189189
^^^^
190190

191-
By default, :class:`ArgumentParser` objects uses ``sys.argv[0]`` to determine
191+
By default, :class:`ArgumentParser` objects use ``sys.argv[0]`` to determine
192192
how to display the name of the program in help messages. This default is almost
193193
always desirable because it will make the help messages match how the program was
194194
invoked on the command line. For example, consider a file named
@@ -558,7 +558,7 @@ conflict_handler
558558
^^^^^^^^^^^^^^^^
559559

560560
:class:`ArgumentParser` objects do not allow two actions with the same option
561-
string. By default, :class:`ArgumentParser` objects raises an exception if an
561+
string. By default, :class:`ArgumentParser` objects raise an exception if an
562562
attempt is made to create an argument with an option string that is already in
563563
use::
564564

Doc/library/weakref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ the referent is accessed::
414414
Example
415415
-------
416416

417-
This simple example shows how an application can use objects IDs to retrieve
417+
This simple example shows how an application can use object IDs to retrieve
418418
objects that it has seen before. The IDs of the objects can then be used in
419419
other data structures without forcing the objects to remain alive, but the
420420
objects can still be retrieved by ID if they do.

Doc/library/xml.dom.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ NodeList Objects
404404
^^^^^^^^^^^^^^^^
405405

406406
A :class:`NodeList` represents a sequence of nodes. These objects are used in
407-
two ways in the DOM Core recommendation: the :class:`Element` objects provides
407+
two ways in the DOM Core recommendation: an :class:`Element` object provides
408408
one as its list of child nodes, and the :meth:`getElementsByTagName` and
409409
:meth:`getElementsByTagNameNS` methods of :class:`Node` return objects with this
410410
interface to represent query results.

Lib/inspect.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,8 @@ def isfunction(object):
171171
def isgeneratorfunction(object):
172172
"""Return true if the object is a user-defined generator function.
173173
174-
Generator function objects provides same attributes as functions.
175-
176-
See help(isfunction) for attributes listing."""
174+
Generator function objects provide the same attributes as functions.
175+
See help(isfunction) for a list of attributes."""
177176
return bool((isfunction(object) or ismethod(object)) and
178177
object.__code__.co_flags & CO_GENERATOR)
179178

Lib/test/test_json/test_decode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_object_pairs_hook(self):
3535
self.assertEqual(self.loads(s, object_pairs_hook=OrderedDict,
3636
object_hook=lambda x: None),
3737
OrderedDict(p))
38-
# check that empty objects literals work (see #17368)
38+
# check that empty object literals work (see #17368)
3939
self.assertEqual(self.loads('{}', object_pairs_hook=OrderedDict),
4040
OrderedDict())
4141
self.assertEqual(self.loads('{"empty": {}}',

Misc/HISTORY

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26057,7 +26057,7 @@ machinery is moved to the new file importdl.c.
2605726057
module implementing deepcopy and normal (shallow) copy operations.
2605826058
See the library reference manual.
2605926059

26060-
- Documentation strings for many objects types are accessible through
26060+
- Documentation strings for many object types are accessible through
2606126061
the __doc__ attribute. Modules, classes and functions support special
2606226062
syntax to initialize the __doc__ attribute: if the first statement
2606326063
consists of just a string literal, that string literal becomes the

Misc/NEWS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6017,7 +6017,7 @@ Core and Builtins
60176017

60186018
- Issue #20588: Make Python-ast.c C89 compliant.
60196019

6020-
- Issue #20437: Fixed 22 potential bugs when deleting objects references.
6020+
- Issue #20437: Fixed 22 potential bugs when deleting object references.
60216021

60226022
- Issue #20500: Displaying an exception at interpreter shutdown no longer
60236023
risks triggering an assertion failure in PyObject_Str.
@@ -6922,7 +6922,7 @@ Core and Builtins
69226922
when the creation of the replacement exception won't lose any information.
69236923

69246924
- Issue #19466: Clear the frames of daemon threads earlier during the
6925-
Python shutdown to call objects destructors. So "unclosed file" resource
6925+
Python shutdown to call object destructors. So "unclosed file" resource
69266926
warnings are now correctly emitted for daemon threads.
69276927

69286928
- Issue #19514: Deduplicate some _Py_IDENTIFIER declarations.

0 commit comments

Comments
 (0)