[Tutor] more help required ( __doc__ & dir() )

Girish Gajwani girishg@india.ti.com
Sun, 09 Sep 2001 03:38:59 +0530


Hi All,

Thanks for a reply to my earlier post. It solved my problem

Next, what I wish to do is this:

#######################
#! /usr/bin/env  python 

import sys
def main():
  print dir() # gives []

main()
print dir()   # gives ['__builtins__', '__doc__',
'__name__', 'main', 'sys']
#######################

In the main() function, why am I not able to see the module
sys? while i can see it from the outermost level. How do i
make it visible to the inner directory level(hope it is
clear)

Also, I am currently subscribed to the mailing list in
digest mode. If I were to switch to individual mail, would I
lose the mails in between(i.e., those mails which were
supposed to come in the next digest?)

TIA,
Girish