mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
#18796: improve documentation of the file argument of dis.show_code. Initial patch by Vajrasky Kok.
This commit is contained in:
parent
f79126f373
commit
6e6c6ac3d7
2 changed files with 6 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue