On this page
inspect.ClassFoundException
Prev: inspect.BufferFlags | Up: inspect | Next: inspect.classify_class_attrs
Rel: inspect.ArgInfo, inspect.Arguments, inspect.Attribute, inspect.BlockFinder
Ref: docs.python.org โ inspect.ClassFoundException
Tags: #public #python3 #stdlib #inspect
Import
import inspect
from inspect import ClassFoundException
Signature & Overview
inspect.ClassFoundException(...)
inspect.ClassFoundException class.
Methods & Attributes
ClassFoundException.add_note(self, note, /)โ Add a note to the exceptionClassFoundException.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import inspect
assert issubclass(inspect.ClassFoundException, Exception)
Gotchas
- Internal control-flow exception: Raised inside
BlockFinderwhen scanning past a class header.
REPL Inspect
from inspect import ClassFoundException
help(ClassFoundException)
Linked from
Related notes
- tuts/python3/stdlib_module/inspect/BufferFlags Linked here; links to this page; shared tags: #inspect, #stdlib
- tuts/python3/stdlib_module/inspect/classify_class_attrs Linked here; links to this page; shared tags: #inspect, #stdlib
- tuts/python3/stdlib_module/inspect Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/inspect/ArgInfo Linked here; shared tags: #inspect, #stdlib
- tuts/python3/stdlib_module/inspect/Arguments Linked here; shared tags: #inspect, #stdlib
- tuts/python3/stdlib_module/inspect/Attribute Linked here; shared tags: #inspect, #stdlib
- tuts/python3/stdlib_module/inspect/BlockFinder Linked here; shared tags: #inspect, #stdlib
- tuts/python3/stdlib_module/inspect/BoundArguments shared tags: #inspect, #stdlib
- tuts/python3/stdlib_module/inspect/cleandoc shared tags: #inspect, #stdlib
- tuts/python3/stdlib_module/inspect/ClosureVars shared tags: #inspect, #stdlib