Replacing python docstrings

Posted by tomaz on Stack Overflow See other posts from Stack Overflow or by tomaz
Published on 2010-03-19T14:12:03Z Indexed on 2010/03/19 17:01 UTC
Read the original article Hit count: 233

I have written a epytext to reST markup converter, and now I want to convert all the docstrings in my entire library from epytext to reST format.

Is there a smart way to read the all the docstrings in a module and write back the replacements?

ps: ast module perhaps?

© Stack Overflow or respective owner

Related posts about python

Related posts about docstring