Serhiy Storchaka added the comment:

I meant that set shouldn't be handled in _PyCode_ConstantKey at all. Only 
frozenset constants can be considered equal. Sets as well as lists all should 
be different.

There is yet one issue with string and bytes literals. When run Python with the 
-b option:

>>> a, b = lambda: 'a', lambda: b'a'
sys:1: BytesWarning: Comparison between bytes and string
sys:1: BytesWarning: Comparison between bytes and string

May be the type should be the first item in the key.

----------

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

Reply via email to