suggestions, comments on an "is_subdict" test

Paul Rubin no.email at nospam.invalid
Sat Apr 23 09:26:45 CEST 2011


Irmen de Jong <irmen.NOSPAM at xs4all.nl> writes:
> I would use:
> test_dct.items() <= base_dct.items()

I think you need an explicit cast:

  set(test_dct.items()) <= set(base_dct.items())



More information about the Python-list mailing list