mirror of
https://github.com/python/cpython.git
synced 2026-06-15 23:50:43 -04:00
Backport r82456
This commit is contained in:
+9
-3
@@ -5,12 +5,18 @@
|
||||
:synopsis: Disassembler for Python bytecode.
|
||||
|
||||
|
||||
The :mod:`dis` module supports the analysis of Python :term:`bytecode` by
|
||||
disassembling it. Since there is no Python assembler, this module defines the
|
||||
Python assembly language. The Python bytecode which this module takes as an
|
||||
The :mod:`dis` module supports the analysis of CPython :term:`bytecode` by
|
||||
disassembling it. The CPython bytecode which this module takes as an
|
||||
input is defined in the file :file:`Include/opcode.h` and used by the compiler
|
||||
and the interpreter.
|
||||
|
||||
.. impl-detail::
|
||||
|
||||
Bytecode is an implementation detail of the CPython interpreter! No
|
||||
guarantees are made that bytecode will not be added, removed, or changed
|
||||
between versions of Python. Use of this module should not be considered to
|
||||
work across Python VMs or Python releases.
|
||||
|
||||
Example: Given the function :func:`myfunc`::
|
||||
|
||||
def myfunc(alist):
|
||||
|
||||
Reference in New Issue
Block a user