Python importing
Posted
by Algorist
on Stack Overflow
See other posts from Stack Overflow
or by Algorist
Published on 2010-03-17T01:13:33Z
Indexed on
2010/03/17
1:21 UTC
Read the original article
Hit count: 498
Hi,
If I have a file myfile.py, which imports Class1 from file.py and file.py contains imports to different classes in file2.py, file3.py, file4.py.
In my myfile.py, can I access these classes or do I need to again import file2.py, file3.py etc...
My question is whether python automatically add all the imports included in the file I imported, and can I use them automatically.
Thank you. Bala
© Stack Overflow or respective owner