# 3.11 `inspect` -- Inspect live objects

New in version 2.1.

The `inspect` module provides several useful functions to help get information about live objects such as modules, classes, methods, functions, tracebacks, frame objects, and code objects. For example, it can help you examine the contents of a class, retrieve the source code of a method, extract and format the argument list for a function, or get all the information you need to display a detailed traceback.

There are four main kinds of services provided by this module: type checking, getting source code, inspecting classes and functions, and examining the interpreter stack.

Subsections

- 3.11.1 Types and members
- 3.11.2 Retrieving source code
- 3.11.3 Classes and functions
- 3.11.4 The interpreter stack