Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b034c75

Browse files
committed
Backport r82456
1 parent 823de00 commit b034c75

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

Doc/library/dis.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@
55
:synopsis: Disassembler for Python bytecode.
66

77

8-
The :mod:`dis` module supports the analysis of Python :term:`bytecode` by
9-
disassembling it. Since there is no Python assembler, this module defines the
10-
Python assembly language. The Python bytecode which this module takes as an
8+
The :mod:`dis` module supports the analysis of CPython :term:`bytecode` by
9+
disassembling it. The CPython bytecode which this module takes as an
1110
input is defined in the file :file:`Include/opcode.h` and used by the compiler
1211
and the interpreter.
1312

13+
.. impl-detail::
14+
15+
Bytecode is an implementation detail of the CPython interpreter! No
16+
guarantees are made that bytecode will not be added, removed, or changed
17+
between versions of Python. Use of this module should not be considered to
18+
work across Python VMs or Python releases.
19+
1420
Example: Given the function :func:`myfunc`::
1521

1622
def myfunc(alist):

Misc/NEWS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,12 @@ Tests
363363
- Issue #8193: Fix test_zlib failure with zlib 1.2.4.
364364

365365

366+
Documentation
367+
-------------
368+
369+
- Issue #7829: Document in dis that bytecode is an implementation detail.
370+
371+
366372
What's New in Python 3.1.2?
367373
===========================
368374

0 commit comments

Comments
 (0)