Partial classes

John Salerno johnjsal at NOSPAMgmail.com
Wed Jul 19 09:56:21 EDT 2006


Marc 'BlackJack' Rintsch wrote:

> Can you flesh out your use case a little bit and tell why you can't solve
> the problem with inheritance or a meta class?

 From my experience with C#, the only real use for partial classes is 
when you want to separate your GUI code from the rest of your logic. But 
since GUI programming in Python isn't always done, this isn't as big of 
a deal.

Aside from that, if you really need to split up your classes, it's 
probably an indication that you could create multiple classes instead, 
right?



More information about the Python-list mailing list