Re: Code documentation tool similar to what Ruby (on Rails?) uses

2005-06-12 Thread Andrew Dalke
Ksenia Marasanova responsded to Michele Simionato >> >>> print "%s" % inspect.getsource(os.makedirs) > > That's easy, thanks! I guess I'll submit a patch for Epydoc with the > functionality I've mentioned :) Before doing that, add a "cgi.escape()" to the text. Otherwise embedded [<>&] characters

Re: Code documentation tool similar to what Ruby (on Rails?) uses

2005-06-12 Thread Ksenia Marasanova
12 Jun 2005 08:12:14 -0700, Michele Simionato <[EMAIL PROTECTED]>: > What about doing it yourself? > > >>> import inspect, os > >>> print "%s" % inspect.getsource(os.makedirs) That's easy, thanks! I guess I'll submit a patch for Epydoc with the functionality I've mentioned :) -- Ksenia -- htt

Re: Code documentation tool similar to what Ruby (on Rails?) uses

2005-06-12 Thread Michele Simionato
What about doing it yourself? >>> import inspect, os >>> print "%s" % inspect.getsource(os.makedirs) def makedirs(name, mode=0777): """makedirs(path [, mode=0777]) Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except that any intermediate path segme

Code documentation tool similar to what Ruby (on Rails?) uses

2005-06-12 Thread Ksenia Marasanova
Hi, I wonder if there is a tool for generation Python API documentation that can include source code into HTML output. Example: http://api.rubyonrails.com/ I really like the possibility to click on "show source" link and read the source of the method! AFAIK it is not possible with Epydoc and Pydo