|
From: Stefan P. <pa...@ik...> - 2011-01-05 07:26:59
|
On Tue, Jan 4, 2011 at 9:05 PM, Entity Reborn <ent...@gm...> wrote: > Wouldn't you mean: > conf['mylist'] = [1,2,3] > Otherwise you are feeding the object a string. If I meant that my entire post would make no sense :-) Yes, I would be feeding it a string. Some say it shouldn't work that way. Fair enough, I can accept that feeding a string to something not expecting a string should produce an error. But why doesn't conf['myint'] = '1' produce an error? I'm feeding it too a string. Why can I feed a string in one case but not the other when in neither case a string is what is expected. What I'm feeding is wrong in both cases: in one case implicit conversion occurs, in the other it doesn't. (This post is just to clarify my previous message, as promised I stopped arguing my point :-) -- Stefan Parviainen |