Python Scalability
Curtis Yanko
cmyanko at bigfoot.com
Wed May 26 07:57:53 EDT 1999
In article <7i9l2l$5fu at world1.bellatlantic.net>,
"David Cuthbert" <dacut at kanga.org> wrote:
> Greetings, Pythoners...
>
<snip>
> My biggest nit: those annoying AttributeError exceptions! They
usually crop
> up when I'm changing things (adding a method a set of classes) and
don't do
> a thorough job (a rarely used class doesn't get the method added).
Then I
> call a function which uses the method, and -- oops! I passed in an
object
> whose class didn't get modified. Down comes the AttributeError...
>
><snip>
>From a purely OO perspective, why are you breaking perfectly good
classes instead of using inheritance? You either need a base class for
this set of classes or you need to keep subclassing when you want to
extend the interface.
--
-Curtis Yanko
--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---
More information about the Python-list
mailing list