Issue #27993: Merge plural fixes from 3.5

This commit is contained in:
Martin Panter 2016-09-07 23:36:43 +00:00
commit 1aa642f6bd
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)