Hi W,
On Aug 3, 2010, at 4:38 PM, wheres pythonmonks wrote:
I think that the crux of the matter is in points #3, #4, and #5 that
you raised:
I think #2 is important too: a program is supposed to do what you
expect, and I don't expect instantiation of an ABC.
On #3: Not clear that all po
Roald:
First, I must admit, I didn't know I could create an ABC in python.
Now I see (http://docs.python.org/library/abc.html). Thank you.
I think that the crux of the matter is in points #3, #4, and #5 that
you raised:
3) adding stuff to instances is less reusable that adding stuff to (sub)cla
On Aug 3, 2010, at 2:46 PM, wheres pythonmonks wrote:
Hi!
I have a class (supposed to be an abstract base class):
In python (as opposed to static languages like C++) I don't seed to
subclass the base class, but instead I can simply override the
behavior of stub methods and values.
Is there a pre
Hi!
I have a class (supposed to be an abstract base class):
In python (as opposed to static languages like C++) I don't seed to
subclass the base class, but instead I can simply override the
behavior of stub methods and values.
Is there a preference between between subclassing (C++ approach) and
o