summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-08-23 19:41:39 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-08-23 19:41:39 (GMT)
commit6e6c6ac3d7ccd235d8cb6835db85a432ac0ccba5 (patch)
treeda5ea5f649b27e07d46dc8df93677e30d04d0331 /Doc
parentf79126f373a9d5c9b584a8db736fe490fcbfa77a (diff)
downloadcpython-6e6c6ac3d7ccd235d8cb6835db85a432ac0ccba5.zip
cpython-6e6c6ac3d7ccd235d8cb6835db85a432ac0ccba5.tar.gz
cpython-6e6c6ac3d7ccd235d8cb6835db85a432ac0ccba5.tar.bz2
#18796: improve documentation of the file argument of dis.show_code. Initial patch by Vajrasky Kok.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/dis.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 468ce92..a546f68 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -109,7 +109,8 @@ object isn't useful:
.. function:: show_code(x, *, file=None)
Print detailed code object information for the supplied function, method,
- source code string or code object to stdout.
+ source code string or code object to *file* (or ``sys.stdout`` if *file*
+ is not specified).
This is a convenient shorthand for ``print(code_info(x), file=file)``,
intended for interactive exploration at the interpreter prompt.