~ubuntu-branches/ubuntu/oneiric/python2.6/oneiric

« back to all changes in this revision

Viewing changes to Doc/library/dis.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-08-07 20:03:08 UTC
  • mfrom: (10.1.27 sid)
  • Revision ID: james.westby@ubuntu.com-20100807200308-bwsyymoc4donr9a9
Tags: 2.6.6~rc1-1ubuntu1
* Merge with Debian; remaining changes:
  - Regenerate the control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
   :synopsis: Disassembler for Python bytecode.
7
7
 
8
8
 
9
 
The :mod:`dis` module supports the analysis of Python :term:`bytecode` by disassembling
10
 
it.  Since there is no Python assembler, this module defines the Python assembly
11
 
language.  The Python bytecode which this module takes as an input is defined
12
 
in the file  :file:`Include/opcode.h` and used by the compiler and the
13
 
interpreter.
 
9
The :mod:`dis` module supports the analysis of CPython :term:`bytecode` by
 
10
disassembling it. The CPython bytecode which this module takes as an
 
11
input is defined in the file :file:`Include/opcode.h` and used by the compiler
 
12
and the interpreter.
 
13
 
 
14
.. impl-detail::
 
15
 
 
16
   Bytecode is an implementation detail of the CPython interpreter!  No
 
17
   guarantees are made that bytecode will not be added, removed, or changed
 
18
   between versions of Python.  Use of this module should not be considered to
 
19
   work across Python VMs or Python releases.
14
20
 
15
21
Example: Given the function :func:`myfunc`::
16
22