> Martin v. Löwis schrieb:
> 
>>A partial class is a fragment of a class definition;
>>partial classes allow to spread the definition of
>>a class over several modules.

When I want to do this, usually I define the parts
as ordinary, separate classes, and then define the
main class as inheriting from all of them. That
avoids the monkeypatching-like behaviour of what
you're doing -- the main class definition makes it
clear what parts it's made up of -- and it uses
only standard Python techniques, so it doesn't
harbour any surprises.

--
Greg
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to