Big file
hdante
hdante at gmail.com
Wed Mar 12 21:37:39 EDT 2008
On Mar 12, 9:42 pm, "Andrew Rekdal" <as... at comcast.net> wrote:
> I am working in the class constructor defining elements of an application. The problem is the file is getting unmanageble and I am wanting to extend the contructor __init__ to another file.
>
> Is it possible to import directly into the contructor the contents of another module file?
>
> If so how would this be done?
>
> Thanks -- andrew
class BigObject:
import my_module
def __init__(self):
self.my_module.do_this()
---------------------------------------
class BigObject(MyUtils):
def __init__(self):
self.things_from_utils()
More information about the Python-list
mailing list