]> granicus.if.org Git - python/commit
Generate docstrings.
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 11 Apr 2001 16:24:30 +0000 (16:24 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 11 Apr 2001 16:24:30 +0000 (16:24 +0000)
commit9ab019bee7ccc79b15a24ab3043cb1f05b15d7bb
treee15b547b02f23b759eac9440ba81c2e20621c9a5
parent4c1f42733ce7bc322c707c10b3322665a7a128ea
Generate docstrings.

Fixes SF buf #217004

Add method fixDocstring() to CodeGenerator.  It converts the Discard
node containing the docstring into an assignment to __doc__.
Lib/compiler/pycodegen.py
Tools/compiler/compiler/pycodegen.py