module level subclassing

km srikrishnamohan at gmail.com
Mon Dec 10 14:43:15 EST 2007


Hi all,

Is there a way to access the classes defined in the __init__.py into the
modules files in the directory?
for example say i have a module (dir) M with contents __init__.py  and a.pyand
b.py
a.py  and b.py would like to subclass/instantiate  a class defined  in
__init__.py
how's that possible ?

kindly enlighten
regards,
KM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20071211/1492dbeb/attachment.html>


More information about the Python-list mailing list