diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-09-08 05:39:59 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-09-08 05:39:59 +0000 |
commit | ba5480b6565e00b4672ed276770623faa1312877 (patch) | |
tree | 6a9201923ab6753e54fb60b6edbdb454e4486d61 /Lib/inspect.py | |
parent | 440bbd0e388ee516bf93be0f96ea7de7fafc4f32 (diff) | |
download | cpython-git-ba5480b6565e00b4672ed276770623faa1312877.tar.gz |
Issue #27993: Fix problems with the plural “objects” in docs and comments
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r-- | Lib/inspect.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py index b08e145f07..6d645bd046 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -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) |