MCPcopy Index your code
hub / github.com/python/cpython / get_exceptions

Function get_exceptions

Lib/test/test_pickle.py:626–630  ·  view source on GitHub ↗
(mod)

Source from the content-addressed store, hash-verified

624 return obj
625
626def get_exceptions(mod):
627 for name in dir(mod):
628 attr = getattr(mod, name)
629 if isinstance(attr, type) and issubclass(attr, BaseException):
630 yield name, attr
631
632class CompatPickleTests(unittest.TestCase):
633 def test_import(self):

Callers 2

test_exceptionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…