Python Scalability
dacut at kanga.org
dacut at kanga.org
Tue May 25 11:55:19 EDT 1999
In article <Puj23.7$KR2.12684 at news.corridex.com>,
"Evan Simpson" <evan at tokenexchange.com> wrote:
> Is the original author aware of the nifty-keen Python feature of mixin
> classes?
Yep, yep... use them all the time in both Python and C++.
> Can't tell for sure from the information given, but they might be
> perfect, if you just need to side-car an interface onto a bunch of
> unrelated classes. Makes it quite easy to test for
> interface-compliance, too.
Unfortunately, there's no easy way to tell (at bytecompile time) whether
a child has actually implemented an abstract method. You still have to
wait for the exception to trickle down at run-time. The only difference
is that it's something other than an AttributeError exception.
--== 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