Merged revisions 74287 via svnmerge from

svn+ssh://pythondev@www.python.org/python/branches/py3k

................
  r74287 | mark.dickinson | 2009-08-02 16:51:19 +0100 (Sun, 02 Aug 2009) | 10 lines

  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.
  ........
................
This commit is contained in:
Mark Dickinson 2009-08-02 15:51:59 +00:00
parent b5b367811c
commit c033942ed9
2 changed files with 1 additions and 4 deletions

View file

@ -236,10 +236,6 @@ def isroutine(object):
or ismethod(object) or ismethod(object)
or ismethoddescriptor(object)) or ismethoddescriptor(object))
def isgenerator(object):
"""Return true if the object is a generator object."""
return isinstance(object, types.GeneratorType)
def isabstract(object): def isabstract(object):
"""Return true if the object is an abstract base class (ABC).""" """Return true if the object is an abstract base class (ABC)."""
return isinstance(object, type) and object.__flags__ & TPFLAGS_IS_ABSTRACT return isinstance(object, type) and object.__flags__ & TPFLAGS_IS_ABSTRACT

View file

@ -425,6 +425,7 @@ Thomas Lee
Christopher Lee Christopher Lee
Tennessee Leeuwenburg Tennessee Leeuwenburg
Luc Lefebvre Luc Lefebvre
Vincent Legoll
Kip Lehman Kip Lehman
Joerg Lehmann Joerg Lehmann
Luke Kenneth Casson Leighton Luke Kenneth Casson Leighton