On Tue, Feb 5, 2013 at 6:27 AM, Oscar Benjamin <oscar.j.benja...@gmail.com> wrote: > > I almost wrote this response but then I realised that Dave probably > meant that "obj in dict" returns True if the dict has a key equal to > obj rather than if the dict has a (key, value) pair equal to obj.
Thanks, that's probably what Steven meant. It's keeping "item in a_dict" consistent with "item in list(a_dict)". _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor