ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH

Reference
ActivePython 2.5
Python Documentation
Library Reference
26. Python Runtime Services
26.1 sys -- System-specific parameters and functions
26.2 builtin -- Built-in objects
26.3 main -- Top-level script environment
26.4 warnings -- Warning control
26.5 contextlib -- Utilities for with-statement contexts.
26.6 atexit -- Exit handlers
26.7 traceback -- Print or retrieve a stack traceback
26.8 future -- Future statement definitions
26.9 gc -- Garbage Collector interface
26.10 inspect -- Inspect live objects
26.10.1 Types and members
26.10.2 Retrieving source code
26.10.3 Classes and functions
26.10.4 The interpreter stack
26.11 site -- Site-specific configuration hook
26.12 user -- User-specific configuration hook
26.13 fpectl -- Floating point exception control

MyASPN >> Reference >> ActivePython 2.5 >> Python Documentation >> Library Reference >> 26. Python Runtime Services
ActivePython 2.5 documentation

26.10 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.



See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved