This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vajrasky
Recipients docs@python, vajrasky
Date 2013-08-21.02:56:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377053819.02.0.986969704551.issue18796@psf.upfronthosting.co.za>
In-reply-to
Content
$ ./python
Python 3.4.0a1+ (default:afb1b4797419, Aug 21 2013, 09:54:46) 
[GCC 4.7.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dis
>>> import sys
>>> def spam(x):
...   return x * 2
... 
>>> dis.show_code(spam, file=sys.stderr)
Name:              spam
Filename:          <stdin>
Argument count:    1
Kw-only arguments: 0
Number of locals:  1
Stack size:        2
Flags:             OPTIMIZED, NEWLOCALS, NOFREE
Constants:
   0: None
   1: 2
Variable names:
   0: x
>>> output = open('/tmp/output.txt', 'w')
>>> dis.show_code(spam, file=output)
>>> output.close()
>>> dis.show_code.__doc__
'Print details of methods, functions, or code to stdout.'

Attached the patch to fix the documentation.
History
Date User Action Args
2013-08-21 02:56:59vajraskysetrecipients: + vajrasky, docs@python
2013-08-21 02:56:59vajraskysetmessageid: <1377053819.02.0.986969704551.issue18796@psf.upfronthosting.co.za>
2013-08-21 02:56:58vajraskylinkissue18796 messages
2013-08-21 02:56:58vajraskycreate