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 23:29:52 EDT 2015
On 12-06-2015 20:12, Peter Otten wrote:
> Paulo da Silva wrote:
>
>> On 12-06-2015 17:17, Peter Otten wrote:
>>> Paulo da Silva wrote:
>>>
>> ...
...
> It *is* a class, and by making C a subclass of SimpleNamespace C inherits
> the initialiser which does the actual work of updating the __dict__ of the C
> instance.
>
OK, OK ...
Somehow I "changed" my mind to think SimpleNamespace as an argument of
__init__ and not as a subclass. I should have looked better before
responding.
Sorry.
Thank you very much.
More information about the Python-list
mailing list