MonkeeSage a écrit :
> On Dec 3, 8:58 am, Samuel <[EMAIL PROTECTED]> wrote:
>> On Mon, 03 Dec 2007 06:45:45 -0800, Giampaolo Rodola' wrote:
>>> dir.__doc__
>> This contains only the docstring one object (module, class,
>> function, ...). I was thinking more of the complete API documentation
>> that
On Dec 3, 8:58 am, Samuel <[EMAIL PROTECTED]> wrote:
> On Mon, 03 Dec 2007 06:45:45 -0800, Giampaolo Rodola' wrote:
> > dir.__doc__
>
> This contains only the docstring one object (module, class,
> function, ...). I was thinking more of the complete API documentation
> that can be found in a file,
Check out the 'pydoc' script; it ships with Python. I've got my CI system
rigged up to run pydoc on each commit and automatically generate HTML
documentation. The tool actually imports a 'pydoc.py' module, which you may
be able to use directly if you need more control over the process.
On top o
On Mon, 03 Dec 2007 06:45:45 -0800, Giampaolo Rodola' wrote:
> dir.__doc__
This contains only the docstring one object (module, class,
function, ...). I was thinking more of the complete API documentation
that can be found in a file, and formatted in a readable way.
-Samuel
--
http://mail.pyt
On 3 Dic, 11:26, Samuel <[EMAIL PROTECTED]> wrote:
> Does anyone know an easy way to extract the API documentation that is
> embedded into a Python file as a text file?
>
> -Samuel
Something like this?
print >> open('file.txt', 'w'), dir.__doc__
--
http://mail.python.org/mailman/listinfo/python-
Does anyone know an easy way to extract the API documentation that is
embedded into a Python file as a text file?
-Samuel
--
http://mail.python.org/mailman/listinfo/python-list