Multiple hierarchies and method overloading
bruno at modulix
onurb at xiludom.gro
Tue Apr 25 05:57:20 EDT 2006
Lawrence D'Oliveiro wrote:
> In article <1145931851.526941.231680 at v46g2000cwv.googlegroups.com>,
> "Ben Cartwright" <bencvt at gmail.com> wrote:
>
>
>>Philippe Martin wrote:
>>
>>
>>>I renamed A_Func(self) to fix that ... but is there a cleaner way around ?
>>
>>When using multiple inheritence, the order of the base classes matters!
>
>
> When you have to start worrying about complications like this, isn't
> that a sign that you're taking the whole OO thing a little too seriously?
>
> After all, technology is supposed to _solve_ problems, not create them.
> If the complications of OO are making you lose sight of your original
> problem, then maybe you should put them aside.
def fun(arg1, arg2):
pass
fun()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: fun() takes exactly 2 arguments (0 given)
If the complication of functions are making you loose sight of your
original problem, then maybe you should put them aside ?-)
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list
mailing list