Idea about method parameters
sebastien
s.keim at laposte.net
Tue Sep 25 07:30:57 EDT 2001
> in my Code, I very often have constructs like
>
> class A:
> def m(self, value):
> self.value = value
> # some other work to be done
>
> This is annoying especially when having lots of parameters, which often
> happens in __init__ methods.
I have suggested at:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/68424
a few class that try to answer your problem.
In fact it do a litle more since it allow you to manage your parameters by groups.
More information about the Python-list
mailing list