-On [20080424 13:16], bdsatish ([EMAIL PROTECTED]) wrote:
>#!/usr/bin/env

#!/usr/bin/env what? I guess you meant #!/usr/bin/env python

>"""
>Author: BDS
>Version: 1.0
>"""
>
>def  Hello():
>    """ Prints a Hello World to the screen"""
>    print "Hello, World"
>
>I want to use ReSt (reStructuredText) in my docstrings or comments.
>Any example of how to do it, w.r.t. above code ? Also how to invoke
>rst on the Python code to do the processing ?

Just run epydoc (easy_install epydoc) on your code, for example, and observe
the resulting output.

Once you see the output it's quite easy, since you already know reSt, how to
change your docstrings to use appropriate formatting for what you need.

-- 
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B
Give me the strength to be who I was, and forgive me for who I am...
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to