summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-23 06:23:52 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-23 06:23:52 (GMT)
commit585c93daea510634ef0c99969b88bc320cdb61a1 (patch)
tree96cf0ddb48e16e689db2a25ea2fa2edcf06519bc /Doc/library
parent21ce717eafca96b60fb1c6a791332a41e6777783 (diff)
downloadcpython-585c93daea510634ef0c99969b88bc320cdb61a1.zip
cpython-585c93daea510634ef0c99969b88bc320cdb61a1.tar.gz
cpython-585c93daea510634ef0c99969b88bc320cdb61a1.tar.bz2
Issue #26733: Disassembling a class now disassembles class and static methods.
Patch by Xiang Zhang.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/dis.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 68c196e..d2d8ac7 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -139,11 +139,11 @@ operation is being performed, so the intermediate analysis object isn't useful:
Disassemble the *x* object. *x* can denote either a module, a class, a
method, a function, a generator, a code object, a string of source code or
a byte sequence of raw bytecode. For a module, it disassembles all functions.
- For a class, it disassembles all methods. For a code object or sequence of
- raw bytecode, it prints one line per bytecode instruction. Strings are first
- compiled to code objects with the :func:`compile` built-in function before being
- disassembled. If no object is provided, this function disassembles the last
- traceback.
+ For a class, it disassembles all methods (including class and static methods).
+ For a code object or sequence of raw bytecode, it prints one line per bytecode
+ instruction. Strings are first compiled to code objects with the :func:`compile`
+ built-in function before being disassembled. If no object is provided, this
+ function disassembles the last traceback.
The disassembly is written as text to the supplied *file* argument if
provided and to ``sys.stdout`` otherwise.