Serhiy Storchaka added the comment:

Additional check hits performance. First issue can be resolved by changing code 
to

    try:
        key, value = item
    except TypeError:
        return False

Second issue can be resolved by comparing not v with value, but (key, v) with 
item. However I'm not sure that fixing it is worth such complication of the 
code.

----------
nosy: +serhiy.storchaka
versions:  -Python 3.2, Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24434>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to