diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-08-02 15:51:19 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-08-02 15:51:19 (GMT) |
commit | a1a54bcef87768d4ff07fa8e70e9d39739355930 (patch) | |
tree | 378ff4e9299c760767f83d6a6427f6b7d7f820d7 | |
parent | ea7cbe0c65a57fc8ab38293a4f990c58d36996fb (diff) | |
download | cpython-a1a54bcef87768d4ff07fa8e70e9d39739355930.zip cpython-a1a54bcef87768d4ff07fa8e70e9d39739355930.tar.gz cpython-a1a54bcef87768d4ff07fa8e70e9d39739355930.tar.bz2 |
Merged revisions 74285 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r74285 | mark.dickinson | 2009-08-02 16:40:11 +0100 (Sun, 02 Aug 2009) | 3 lines
Issue #6619: Remove duplicate 'isgenerator' function from inspect module.
Thanks Vincent Legoll.
........
-rw-r--r-- | Lib/inspect.py | 4 | ||||
-rw-r--r-- | Misc/ACKS | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py index 9a84de3..79565c1 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -236,10 +236,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 @@ -427,6 +427,7 @@ Thomas Lee Christopher Lee Tennessee Leeuwenburg Luc Lefebvre +Vincent Legoll Kip Lehman Joerg Lehmann Luke Kenneth Casson Leighton |