]> granicus.if.org Git - python/commitdiff
Issue #6619: Remove duplicate 'isgenerator' function from inspect module.
authorMark Dickinson <dickinsm@gmail.com>
Sun, 2 Aug 2009 15:40:11 +0000 (15:40 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 2 Aug 2009 15:40:11 +0000 (15:40 +0000)
Thanks Vincent Legoll.

Lib/inspect.py
Misc/ACKS

index 30ee670cb6cfc7295a3bb03c75ef98bc50e080f7..21da7d4c946bab992dae49a90f9a3e5d87fc526c 100644 (file)
@@ -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
index 0be765dd957bf82bf981ae7e97f282aeee2c3fde..0ecbb5186cb7366d0812cf9afacacdbdbf5921e8 100644 (file)
--- 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