Kyle wrote: > Hi all, > I'm a graduate student in the physical sciences and still new to > Python. I'm writing a module of often-used code and have included > several math functions in my module via > > from math import cos > > and similarly for other functions. When I input help(mymodule) into > the console, cos() and its docstring are listed in the output section > for my module's functions. However, I only want functions that I have > written to appear, not those that I imported. I know this is merely > aesthetic, but is there a way to eliminate functions that I imported > from the function list in the output from help()? Thanks, > Try setting the __all__ variable in your module to a list of the names you want your module to export.
regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS: http://holdenweb.eventbrite.com/ -- http://mail.python.org/mailman/listinfo/python-list