Logging, Debugging and Introspection
logging, warnings, traceback, inspect, gc and weakref.
Easy
This is an overview — pick a sub-topic below.
Sub-topics (5)
logging
Structured application logs with levels, handlers and formats.
Easy♥ 0🔖 0💬 0
warnings
Issue and filter non-fatal warnings (e.g. deprecations).
Easy♥ 0🔖 0💬 0
traceback
Format and print stack traces, e.g. to log exceptions.
Easy♥ 0🔖 0💬 0
inspect
Examine live objects: signatures, source code, members and the call stack.
Intermediate♥ 0🔖 0💬 0
gc and weakref
Control the garbage collector, and hold references that don't keep objects alive.
Advanced♥ 0🔖 0💬 0
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.