Re: Strange import behavior

2006-09-01 Thread Peter Otten
unexpected wrote: > Hey guys, > > I'm having problems importing a file into my python app. Everytime I > try to define the object specified by this file, i.e, > > test = Test(), > > It raises an ImportError exception: ImportError: cannot import name > Test. > > I've declared it as: > > from t

Re: Strange import behavior

2006-09-01 Thread Fredrik Lundh
unexpected wrote: > I'm having problems importing a file into my python app. Everytime I > try to define the object specified by this file, i.e, > > test = Test(), > > It raises an ImportError exception: ImportError: cannot import name > Test. > > I've declared it as: > > from test import Test

Strange import behavior

2006-09-01 Thread unexpected
Hey guys, I'm having problems importing a file into my python app. Everytime I try to define the object specified by this file, i.e, test = Test(), It raises an ImportError exception: ImportError: cannot import name Test. I've declared it as: from test import Test (and I've also tried from tes