[issue15579] some unicode keys not found using in dictionary.keys()

2012-08-07 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> invalid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue15579] some unicode keys not found using in dictionary.keys()

2012-08-07 Thread axw
axw added the comment: Thanks, I did not realize that. The behaviour is obviously correct. -- resolution: invalid -> ___ Python tracker ___ _

[issue15579] some unicode keys not found using in dictionary.keys()

2012-08-07 Thread R. David Murray
R. David Murray added the comment: In the first example you are shrinking the list you are iterating over, so not all of the items in the list are going to be tested. Try doing for m in uzlist instead. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected stat

[issue15579] some unicode keys not found using in dictionary.keys()

2012-08-07 Thread axw
New submission from axw: This simple snippet demonstrates the misbehaviour. Confirmed on two amd64 machines, python 2.7.3. ### import copy uzlist = [u'abc', u'def', u'ghj', u'klm', u'zxc'] utzdict = {u'abc':1, u'def':2, u'ghj':3, u'klm':4, u'zxc':5} utemplist = copy.copy(uzl