Issue #27993: Fix problems with plural objects in docs and comments

This commit is contained in:
Martin Panter 2016-09-07 11:04:41 +00:00
parent 0be894b2f6
commit 0f0eac431f
7 changed files with 10 additions and 11 deletions

View file

@ -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)