~ubuntu-branches/ubuntu/precise/python3.2/precise

« back to all changes in this revision

Viewing changes to Doc/library/inspect.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-02-14 16:12:14 UTC
  • mfrom: (10.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20110214161214-f5vwa226kebccmt9
Tags: 3.2~rc3-1
Python 3.2 release candidate 3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
.. moduleauthor:: Ka-Ping Yee <ping@lfw.org>
7
7
.. sectionauthor:: Ka-Ping Yee <ping@lfw.org>
8
8
 
 
9
**Source code:** :source:`Lib/inspect.py`
 
10
 
 
11
--------------
9
12
 
10
13
The :mod:`inspect` module provides several useful functions to help get
11
14
information about live objects such as modules, classes, methods, functions,
637
640
   Get current state of a generator-iterator.
638
641
 
639
642
   Possible states are:
640
 
   -  GEN_CREATED: Waiting to start execution.
641
 
   -  GEN_RUNNING: Currently being executed by the interpreter.
642
 
   -  GEN_SUSPENDED: Currently suspended at a yield expression.
643
 
   -  GEN_CLOSED: Execution has completed.
 
643
    * GEN_CREATED: Waiting to start execution.
 
644
    * GEN_RUNNING: Currently being executed by the interpreter.
 
645
    * GEN_SUSPENDED: Currently suspended at a yield expression.
 
646
    * GEN_CLOSED: Execution has completed.
644
647
 
645
648
   .. versionadded:: 3.2