Module imports during object instantiation
Ritesh Raj Sarraf
rrs at researchut.com
Tue Aug 14 10:24:07 EDT 2007
Neil Cerutti wrote:
> If you want an import inside an __init__ to run, you must call
> the __init__ function that contains it.
Doesn't __init__ get called automatically ?
I thought __init__ was required to be called explicitly only when you were
doing inheritance and wanted to pass separate values to the base class.
Ritesh
--
If possible, Please CC me when replying. I'm not subscribed to the list.
More information about the Python-list
mailing list