Inheriting Classes Across Files
newsgroups at jhrothjr.com
Fri Mar 26 00:44:20 CET 2004
"Tina" <bad_addy at no_domain.com> wrote in message
news:E6K8c.748$Dv2.185 at newsread2.news.pas.earthlink.net...
> In my program I need derived classes to inherit from the super class.
> I can do this but I'd like to split the super class into it's own file.
> How do you do this? When I split the code I start getting errors.
The module with the superclass has to be imported before
the subclass is defined.
Be very careful you don't get into an import loop.
That way lies madness.
More information about the Python-list