why have to "from compiler import *"

mark_galeck_spam_magnet at yahoo.com mark_galeck_spam_magnet at yahoo.com
Tue Sep 5 00:40:02 EDT 2006


Hi,  why does

>>> import compiler
>>> compileFile("foo.py")

complain name 'compileFile' not defined.  But

>>>from compiler import *

works.  Why?  (I did read the tutorial, it seems to say "import module"
should work.  

Thank you,  Mark




More information about the Python-list mailing list