gizli <mehm...@gmail.com> writes:

> >>> test_dict = {u'öğe':1}
> >>> u'öğe' in test_dict.keys()
> True
> >>> 'öğe' in test_dict.keys()
> True

I would call this a bug. The two objects are different, so the latter
expression should return ‘False’.

FYI, ‘foo in bar.keys()’ is easier to spell as ‘foo in bar’.

-- 
 \       “It is wrong to think that the task of physics is to find out |
  `\         how nature *is*. Physics concerns what we can *say* about |
_o__)                                             nature…” —Niels Bohr |
Ben Finney
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to