[Python-checkins] r74285 - in python/trunk: Lib/inspect.py Misc/ACKS
mark.dickinson
python-checkins at python.org
Sun Aug 2 17:40:11 CEST 2009
Author: mark.dickinson
Date: Sun Aug 2 17:40:11 2009
New Revision: 74285
Log:
Issue #6619: Remove duplicate 'isgenerator' function from inspect module.
Thanks Vincent Legoll.
Modified:
python/trunk/Lib/inspect.py
python/trunk/Misc/ACKS
Modified: python/trunk/Lib/inspect.py
==============================================================================
--- python/trunk/Lib/inspect.py (original)
+++ python/trunk/Lib/inspect.py Sun Aug 2 17:40:11 2009
@@ -240,10 +240,6 @@
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
Modified: python/trunk/Misc/ACKS
==============================================================================
--- python/trunk/Misc/ACKS (original)
+++ python/trunk/Misc/ACKS Sun Aug 2 17:40:11 2009
@@ -425,6 +425,7 @@
Thomas Lee
Christopher Lee
Luc Lefebvre
+Vincent Legoll
Kip Lehman
Joerg Lehmann
Luke Kenneth Casson Leighton
More information about the Python-checkins
mailing list