Extract doc strings

moerchendiser2k3 googler.1.webmaster at spamgourmet.com
Thu Jul 1 05:12:32 EDT 2010


Hi all,

when I have a PyCodeObject, is there any way to extract a doc string
from the code?
For instance the following script

<---script---->
"""
Hello World!
"""
def main():
    pass
main()
</---script--->

I would like to get "Hello World!". Any chance? Thanks in advance!!

Bye, moerchendiser2k3



More information about the Python-list mailing list