Printing modules contents

joonas keisari_ at hotmail.com
Thu Dec 7 07:38:37 EST 2000


How can I make a script that would print modules contents like below,

sys
  sys.__name__ = "sys"
  sys.stdout = "<PyShell.PseudoFile instance at 7fd530>"
  sys.winver = "1.5"
  sys.etc = "spam"


Joonas.



More information about the Python-list mailing list