Kaydet (Commit) 9a6d6c93 authored tarafından Mark Dickinson's avatar Mark Dickinson

Issue #6619: Remove duplicate 'isgenerator' function from inspect module.

Thanks Vincent Legoll.
üst 4326ad8f
......@@ -240,10 +240,6 @@ def isroutine(object):
or ismethod(object)
or ismethoddescriptor(object))
def isgenerator(object):
"""Return true if the object is a generator object."""
return isinstance(object, types.GeneratorType)
def isabstract(object):
"""Return true if the object is an abstract base class (ABC)."""
return isinstance(object, type) and object.__flags__ & TPFLAGS_IS_ABSTRACT
......
......@@ -425,6 +425,7 @@ Inyeol Lee
Thomas Lee
Christopher Lee
Luc Lefebvre
Vincent Legoll
Kip Lehman
Joerg Lehmann
Luke Kenneth Casson Leighton
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment