Zero Piraeus wrote:
> :
>
> On 22 April 2011 13:30, Peter Otten <__pete...@web.de> wrote:
> def is_subdict(test_dct, base_dct):
>> ... return test_dct <= base_dct and all(test_dct[k] == base_dct[k]
>> for ... k in test_dct)
>> ...
> is_subdict({1:0}, {2:0})
>> Traceback (most recent c
:
On 22 April 2011 13:30, Peter Otten <__pete...@web.de> wrote:
def is_subdict(test_dct, base_dct):
> ... return test_dct <= base_dct and all(test_dct[k] == base_dct[k] for
> ... k in test_dct)
> ...
is_subdict({1:0}, {2:0})
> Traceback (most recent call last):
> File "", line 1, in