And now for something completely boneheaded...

Eric B. sitric at home.com
Fri Sep 10 11:14:50 EDT 1999


try:
>>> import sys      #or import <module name>
>>> dir(sys)          # or dir(<module name>)

-Eric B.  (sitric at home.com)

Warren 'The Howdy Man' Ockrassa wrote:

> It's... the obvious question of the day. Or perhaps the hour.
>
> So I have
>
>   import sys
>
> From that how can I find out what sys can do? I have tried things like
>
>   sys.methods
>
> and
>
>   sys.functions
>
> and
>
>   sys.*
>
> and even, in a moment of extreme desperation
>
>   sys.incest
>
> and we won't talk any more about that.
>
> I have received no joy in response. So with a given module, once
> imported, what is the way by which I can find out what's defined in the
> module and, ideally, how to access it?
>
> What is the obvious which I am missing?
>
> TIA!
>
> --
>     warren ockrassa | nightwares | mailto:warren at nightwares.com
>                     http://www.nightwares.com/





More information about the Python-list mailing list