Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(6) | Call(6) | Derive(0) | Import(0)
Return true if the object is a class. Class objects provide these attributes: __doc__ documentation string __module__ name of module in which this class was defined
def isclass(object): """Return true if the object is a class. Class objects provide these attributes: __doc__ documentation string __module__ name of module in which this class was defined""" return isinstance(object, (type, types.ClassType))
obj = getattr(obj, '__code__', obj) if trycall and not hasattr(obj, 'co_firstlineno'): if hasattr(obj, '__call__') and not py.std.inspect.isclass(obj): x = getrawcode(obj.__call__, trycall=False) if hasattr(x, 'co_firstlineno'):
src/p/y/py-1.4.20/py/_code/code.py py(Download)
obj = getattr(obj, '__code__', obj) if trycall and not hasattr(obj, 'co_firstlineno'): if hasattr(obj, '__call__') and not py.std.inspect.isclass(obj): x = getrawcode(obj.__call__, trycall=False) if hasattr(x, 'co_firstlineno'):
src/p/l/plexnet-HEAD/third_party/generic/pypy/py/test/pycollect.py plexnet(Download)
def _istestclasscandidate(self, name, obj): if self.classnamefilter(name) and \ py.std.inspect.isclass(obj): if hasinit(obj): # XXX WARN
src/p/l/plexnet-HEAD/third_party/generic/pypy/py/test/plugin/pytest_unittest.py plexnet(Download)
def pytest_pycollect_makeitem(collector, name, obj): if 'unittest' not in sys.modules: return # nobody could have possibly derived a subclass if py.std.inspect.isclass(obj) and issubclass(obj, py.std.unittest.TestCase): return UnitTestCase(name, parent=collector)
src/p/l/plexnet-HEAD/third_party/generic/pypy/py/execnet/testing/test_gateway.py plexnet(Download)
mod = __import__(dottedname, None, None, ['__doc__']) for name, value in vars(mod).items(): if py.std.inspect.isclass(value): if name in seen: olddottedname, oldval = seen[name]
src/o/e/oejskit-0.9.0/oejskit/pytest_jstests.py oejskit(Download)
def pytest_pycollect_makeitem(collector, name, obj): if (collector.classnamefilter(name)) and \ py.std.inspect.isclass(obj) and \ hasattr(obj, 'jstests_browser_kind'): browserKind = obj.jstests_browser_kind