How to exclude "import"s from PyDoc

M

Matt Bellis

Hi all,

I tried PyDoc today for documentation for a small project on which
I'm working. I have a class, foo, in foo.py. However, at the beginning
of the file I "from math import *".

When I use PyDoc, it's pulling in all the math functions....

---snip---
..
..
..
FUNCTIONS
acos(...)
acos(x)

Return the arc cosine (measured in radians) of x.

asin(...)
asin(x)

Return the arc sine (measured in radians) of x.

..
..
..
----snip----


Anyone know the best way to get PyDoc to ignore this (or other)
imported module(s)?

Thanks in advance.

Matt
 
D

Diez B. Roggisch

Matt said:
Hi all,

I tried PyDoc today for documentation for a small project on which
I'm working. I have a class, foo, in foo.py. However, at the beginning
of the file I "from math import *".

When I use PyDoc, it's pulling in all the math functions....

---snip---
.
.
.
FUNCTIONS
acos(...)
acos(x)

Return the arc cosine (measured in radians) of x.

asin(...)
asin(x)

Return the arc sine (measured in radians) of x.

.
.
.
----snip----


Anyone know the best way to get PyDoc to ignore this (or other)
imported module(s)?

Don't know about pydoc, but epydoc (which generates much nicer docs
imho) can be forced to only include certain packages.

Diez
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top