[Tutor] assign all parameters of __init__ to class variables?
Alex Hall
mehgcap at gmail.com
Wed Nov 2 14:15:43 CET 2011
Hi all,
I have a class which takes a large number of optional arguments for
its __init__. Instead of going through every single one and assigning
it to "self.[name]", is there some quick way to take all the
parameters of the constructor and assign them all to self.[name] in
one step?
--
Have a great day,
Alex (msg sent from GMail website)
mehgcap at gmail.com; http://www.facebook.com/mehgcap
More information about the Tutor
mailing list