a class's coupling to its bases (was Re: __init__ concerns)
Erik Max Francis
max at alcyone.com
Tue Dec 11 14:09:22 EST 2001
Alex Martelli wrote:
> Case [1]: when using a framework by subclassing framework-supplied
> classes
>
> You would not WANT to know, if at all feasible, because it loosens the
> coupling between your code and some application framework that you're
> using, when you have to inherit from some class in the application
> framework. Coupling should be held as loose as feasible (but no
> looser than that...).
I would think that in these kinds of situations, part of the contract
would be that the base class would have some well-defined constructor
argument list, or some set of well-defined lists to choose from.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ Laws are silent in time of war.
\__/ Cicero
Esperanto reference / http://www.alcyone.com/max/lang/esperanto/
An Esperanto reference for English speakers.
More information about the Python-list
mailing list