Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #3906
| From | Paul Rubin <no.email@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: suggestions, comments on an "is_subdict" test |
| Organization | Nightsong/Fort GNOX |
| References | <mailman.747.1303480525.9059.python-list@python.org> <4db19756$0$81473$e4fe514c@news.xs4all.nl> |
| Date | 2011-04-23 00:26 -0700 |
| Message-ID | <7xd3kdig22.fsf@ruckus.brouhaha.com> (permalink) |
Irmen de Jong <irmen.NOSPAM@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())
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar
suggestions, comments on an "is_subdict" test Vlastimil Brom <vlastimil.brom@gmail.com> - 2011-04-22 15:55 +0200
Re: suggestions, comments on an "is_subdict" test Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2011-04-22 16:57 +0200
Re: suggestions, comments on an "is_subdict" test MRAB <python@mrabarnett.plus.com> - 2011-04-22 16:18 +0100
Re: suggestions, comments on an "is_subdict" test Raymond Hettinger <python@rcn.com> - 2011-04-23 00:23 -0700
Re: suggestions, comments on an "is_subdict" test Paul Rubin <no.email@nospam.invalid> - 2011-04-23 00:26 -0700
csiph-web