How to exclude "import"s from PyDoc

Matt Bellis matthew.bellis at gmail.com
Thu Aug 27 00:27:55 CEST 2009


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



More information about the Python-list mailing list