summaryrefslogtreecommitdiffstats
path: root/Doc/library/dis.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-23 06:24:29 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-23 06:24:29 (GMT)
commit8b9eefc36399bb7c2e292386e9fa3ea251f85ccb (patch)
treecc8ab5c869078c484e7a899208c692542ef6710f /Doc/library/dis.rst
parent3973d277020a740787c40083eb101b2d0ec0eda3 (diff)
parent585c93daea510634ef0c99969b88bc320cdb61a1 (diff)
downloadcpython-8b9eefc36399bb7c2e292386e9fa3ea251f85ccb.zip
cpython-8b9eefc36399bb7c2e292386e9fa3ea251f85ccb.tar.gz
cpython-8b9eefc36399bb7c2e292386e9fa3ea251f85ccb.tar.bz2
Issue #26733: Disassembling a class now disassembles class and static methods.
Patch by Xiang Zhang.
Diffstat (limited to 'Doc/library/dis.rst')
-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 229b9a1..5dd497b 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.