On this page
inspect.EndOfBlock
Prev: inspect.currentframe | Up: inspect | Next: inspect.findsource
Rel: inspect.ArgInfo, inspect.Arguments, inspect.Attribute, inspect.BlockFinder
Ref: docs.python.org โ inspect.EndOfBlock
Tags: #public #python3 #stdlib #inspect
Import
import inspect
from inspect import EndOfBlock
Signature & Overview
inspect.EndOfBlock(...)
inspect.EndOfBlock class.
Methods & Attributes
EndOfBlock.add_note(self, note, /)โ Add a note to the exceptionEndOfBlock.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import inspect
assert issubclass(inspect.EndOfBlock, Exception)
Gotchas
- Internal control-flow exception used by
inspect.BlockFinder.
REPL Inspect
from inspect import EndOfBlock
help(EndOfBlock)
Linked from
Related notes
- tuts/python3/stdlib_module/inspect/currentframe Linked here; links to this page; shared tags: #inspect, #stdlib
- tuts/python3/stdlib_module/inspect/findsource 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/BufferFlags shared tags: #inspect, #stdlib
- tuts/python3/stdlib_module/inspect/ClassFoundException shared tags: #inspect, #stdlib