x104ca9e48>,
'b': <__main__.Pair at 0x104ca9e80>,
'c': <__main__.Pair at 0x104ca9eb8>}
instead of {'a':1, 'b':2, 'c':3}.
Is this right behavior of the dict?
---
Zaur Shibzukhov
___
Pyth
exactly caused my confusion.
---
*Zaur Shibzukhov*
2015-03-17 22:12 GMT+03:00 Brett Cannon :
>
>
> On Tue, Mar 17, 2015 at 3:05 PM Zaur Shibzukhov wrote:
>
>> Hello!
>>
>> In order to explain, let define subclass of dict:
>>
>> class Pair:
>> d
So in such cases it should not subclassed `dict`, but
`collections.MutableMapping`, for example?
---
*Zaur Shibzukhov*
2015-03-17 22:38 GMT+03:00 Brett Cannon :
>
>
> On Tue, Mar 17, 2015 at 3:29 PM Zaur Shibzukhov wrote:
>
>> Yes... But I expected that dict constructor wil
Thanks.
---
*Zaur Shibzukhov*
2015-03-17 22:48 GMT+03:00 Brett Cannon :
>
>
> On Tue, Mar 17, 2015 at 3:46 PM Zaur Shibzukhov wrote:
>
>> So in such cases it should not subclassed `dict`, but
>> `collections.MutableMapping`, for example?
>>
>
> Yes (see th