Re: Inconsistency in dictionary behaviour: dict(dict) not calling__setitem__

2006-12-14 Thread Terry Reedy
Final note: one of the developers ran into a similar issue with dict and has opened a discussion on pydev about how the C implementation might be changed to have derived classes act more consistently without imposing a time penalty on the normal use of dict. There might possibly be a change by

Re: Inconsistency in dictionary behaviour: dict(dict) not calling__setitem__

2006-12-12 Thread Terry Reedy
"Almad" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I discovered this behaviour in dictionary which I find confusing ... > However, when constructing dictionary with dictionary in constructor > like d = RegisterMap({'k':'v'}), __setitem__ is not called, d.__setitem__