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
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
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
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