aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-09-07 11:04:41 +0000
committerMartin Panter <vadmium+py@gmail.com>2016-09-07 11:04:41 +0000
commit0f0eac431f6abcc5f6853b26e848b15f848e8844 (patch)
tree3d671943461614610c236e3d3e8b3cfc98a2d18d /Lib/inspect.py
parentIssue #27895: Spelling fixes (Contributed by Ville Skyttä). (diff)
downloadcpython-0f0eac431f6abcc5f6853b26e848b15f848e8844.tar.gz
cpython-0f0eac431f6abcc5f6853b26e848b15f848e8844.tar.bz2
cpython-0f0eac431f6abcc5f6853b26e848b15f848e8844.zip
Issue #27993: Fix problems with plural objects in docs and comments
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r--Lib/inspect.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index e830eb64cad..ca1d551a697 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -171,9 +171,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.__code__.co_flags & CO_GENERATOR)