Hallo!
> Look at the comment in the code! I have posted the "decorate" module in
Uuups, sorry, I'll RTFM myselfe *g*
Lg,
AXEL.
--
"Aber naja, ich bin eher der Forentyp." Wolfibolfi's outing in
http://www.informatik-forum.at/showpost.php?p=206342&postcount=10
--
http://mail.python.org/mailman/
Look at the comment in the code! I have posted the "decorate" module in
the this
decorator thread:
http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/60f22ed33af5dbcb/b7239b45da6a67ab#b7239b45da6a67ab
--
http://mail.python.org/mailman/listinfo/python-list
Hello!
> from decorate import decorate # see today thread on decorators for this
Gives me an ImportError: No module named decorate. I've got to donwload
that? (python 2.4)
Thanks,
AXEL.
--
"Aber naja, ich bin eher der Forentyp." Wolfibolfi's outing in
http://www.informatik-forum.at/showpost.ph
Axel:
> So, if there are ready class-modules, and I want to use them for
> multiple inheritance, I've to rewrite the init's of classes in the
> module!
Or you use a metaclass that rewrites the __init___ method for you.
This is a start (warning: written in 5 minutes and not tested more than
you s
Hello!
> (1) make A or B a mixin class that doesn't need __init__ called, or
Would be a solution for classes that just give functionality, no
data-structures. In that case, i would use functions, no classes ;-)
I've seen code where there are classes without init and the hope that
self has wh
Axel Straschil wrote:
I solved all my problems for pythons multiple inheritance with this ng,
thaks to all again, but there is one think I still dislike:
class A(object):
def __init__(self, a=None, **__eat):
print "A"
super(A, self).__init__()
class B(object):
def __init__(self, b=None, **_
Hello!
I'm working on an HTML/Cgi widget's class where multiple inheritance
well be sometime a great thing.
I solved all my problems for pythons multiple inheritance with this ng,
thaks to all again, but there is one think I still dislike:
class A(object):
def __init__(self, a=None, **__