File tree Expand file tree Collapse file tree 7 files changed +10
-11
lines changed Expand file tree Collapse file tree 7 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ The following sections describe how each of these are used.
188
188
prog
189
189
^^^^
190
190
191
- By default, :class: `ArgumentParser ` objects uses ``sys.argv[0] `` to determine
191
+ By default, :class: `ArgumentParser ` objects use ``sys.argv[0] `` to determine
192
192
how to display the name of the program in help messages. This default is almost
193
193
always desirable because it will make the help messages match how the program was
194
194
invoked on the command line. For example, consider a file named
@@ -558,7 +558,7 @@ conflict_handler
558
558
^^^^^^^^^^^^^^^^
559
559
560
560
: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
562
562
attempt is made to create an argument with an option string that is already in
563
563
use::
564
564
Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ the referent is accessed::
414
414
Example
415
415
-------
416
416
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
418
418
objects that it has seen before. The IDs of the objects can then be used in
419
419
other data structures without forcing the objects to remain alive, but the
420
420
objects can still be retrieved by ID if they do.
Original file line number Diff line number Diff line change @@ -404,7 +404,7 @@ NodeList Objects
404
404
^^^^^^^^^^^^^^^^
405
405
406
406
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
408
408
one as its list of child nodes, and the :meth: `getElementsByTagName ` and
409
409
:meth: `getElementsByTagNameNS ` methods of :class: `Node ` return objects with this
410
410
interface to represent query results.
Original file line number Diff line number Diff line change @@ -171,9 +171,8 @@ def isfunction(object):
171
171
def isgeneratorfunction (object ):
172
172
"""Return true if the object is a user-defined generator function.
173
173
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."""
177
176
return bool ((isfunction (object ) or ismethod (object )) and
178
177
object .__code__ .co_flags & CO_GENERATOR )
179
178
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def test_object_pairs_hook(self):
35
35
self .assertEqual (self .loads (s , object_pairs_hook = OrderedDict ,
36
36
object_hook = lambda x : None ),
37
37
OrderedDict (p ))
38
- # check that empty objects literals work (see #17368)
38
+ # check that empty object literals work (see #17368)
39
39
self .assertEqual (self .loads ('{}' , object_pairs_hook = OrderedDict ),
40
40
OrderedDict ())
41
41
self .assertEqual (self .loads ('{"empty": {}}' ,
Original file line number Diff line number Diff line change @@ -26057,7 +26057,7 @@ machinery is moved to the new file importdl.c.
26057
26057
module implementing deepcopy and normal (shallow) copy operations.
26058
26058
See the library reference manual.
26059
26059
26060
- - Documentation strings for many objects types are accessible through
26060
+ - Documentation strings for many object types are accessible through
26061
26061
the __doc__ attribute. Modules, classes and functions support special
26062
26062
syntax to initialize the __doc__ attribute: if the first statement
26063
26063
consists of just a string literal, that string literal becomes the
Original file line number Diff line number Diff line change @@ -6017,7 +6017,7 @@ Core and Builtins
6017
6017
6018
6018
- Issue #20588: Make Python-ast.c C89 compliant.
6019
6019
6020
- - Issue #20437: Fixed 22 potential bugs when deleting objects references.
6020
+ - Issue #20437: Fixed 22 potential bugs when deleting object references.
6021
6021
6022
6022
- Issue #20500: Displaying an exception at interpreter shutdown no longer
6023
6023
risks triggering an assertion failure in PyObject_Str.
@@ -6922,7 +6922,7 @@ Core and Builtins
6922
6922
when the creation of the replacement exception won't lose any information.
6923
6923
6924
6924
- 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
6926
6926
warnings are now correctly emitted for daemon threads.
6927
6927
6928
6928
- Issue #19514: Deduplicate some _Py_IDENTIFIER declarations.
You can’t perform that action at this time.
0 commit comments