Passing new fields to an object

Paulo da Silva p_s_d_a_s_i_l_v_a_ns at netcabo.pt
Fri Jun 12 14:26:09 EDT 2015


On 12-06-2015 17:17, gst wrote:
> Le vendredi 12 juin 2015 11:53:24 UTC-4, Paulo da Silva a écrit :

> in the __init__, simply do:
> 
>     self.__dict__.update(**parms)
> 
> regards,
> 
Ok. Thanks.





More information about the Python-list mailing list