New subclass vs option in __init__

Carl Banks pavlovevidence at gmail.com
Fri Dec 7 05:24:06 EST 2007


On Dec 6, 11:56 am, "Kurt Smith" <kwmsm... at gmail.com> wrote:
> It would seem that there are cases where one would be preferable over
> the other: a) when the new behavior would modify a large portion of
> the existing subclass, making a new subclass would be ideal; b) when
> the new behavior changes only slightly the existing subclass, perhaps
> a simple default option in the subclass's __init__ method would be
> best.  Where is the tipping point?


Good question.


Carl Banks




More information about the Python-list mailing list