mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Issue #27993: Merge plural fixes from 3.5
This commit is contained in:
commit
1aa642f6bd
7 changed files with 10 additions and 11 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue