From: Mark Dickinson Date: Sun, 2 Aug 2009 15:40:11 +0000 (+0000) Subject: Issue #6619: Remove duplicate 'isgenerator' function from inspect module. X-Git-Tag: v2.7a1~685 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a6d6c93b45b32c21db5bce25495fec756f6c53d;p=python Issue #6619: Remove duplicate 'isgenerator' function from inspect module. Thanks Vincent Legoll. --- diff --git a/Lib/inspect.py b/Lib/inspect.py index 30ee670cb6..21da7d4c94 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -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 diff --git a/Misc/ACKS b/Misc/ACKS index 0be765dd95..0ecbb5186c 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -425,6 +425,7 @@ Inyeol Lee Thomas Lee Christopher Lee Luc Lefebvre +Vincent Legoll Kip Lehman Joerg Lehmann Luke Kenneth Casson Leighton