Partial 1.0 - Partial classes for Python
Michele Simionato
michele.simionato at gmail.com
Thu Feb 8 10:38:10 EST 2007
More information about the Python-list mailing list
Thu Feb 8 10:38:10 EST 2007
- Previous message (by thread): Partial 1.0 - Partial classes for Python
- Next message (by thread): Partial 1.0 - Partial classes for Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Feb 8, 4:05 pm, s... at pobox.com wrote:> > Composition is great when you know how largish classes are going to be > composed ahead of time and/or already have the pieces available in the form > of other classes you want to reuse. I use this fragment-by-multiple- > inheritance (I hesitate to call it a) pattern when I realize after a long > period of organic growth that a single-inheritance class has gotten too big. > It's often relatively easy to carve the class up into multiple related base > classes. The next step after that might be to morph those independent base > classes back into delegated attributes. > > Skip I know, I just try to avoid the multiple inheritance transitional state and switch directly to the last step ;) M. Simionato
- Previous message (by thread): Partial 1.0 - Partial classes for Python
- Next message (by thread): Partial 1.0 - Partial classes for Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list