is it possible to dividing up a class in multiple files?
Michiel Sikma
michiel at thingmajig.org
Mon Aug 7 09:48:48 EDT 2006
Hi Martin,
I don't think that's possible, since a file is executed when it is
imported. If you load a file which contains a "partial" class, you
will get an error because the indentation is incorrect, or the
methods will be loaded in the wrong namespace.
Regards,
Michiel
Op 7-aug-2006, om 15:41 heeft Martin Höfling het volgende geschreven:
> Hi there,
>
> is it possible to put the methods of a class in different files? I
> just
> want to order them and try to keep the files small.
>
> Regards
> Martin
> --
> http://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list