Rémi Lapeyre <[email protected]> added the comment:
The set is converted to a frozenset before the comparison so
>>> {1,2} in {frozenset({1,2}), 3}
is equivalent to
>>> frozenset({1,2}) in {frozenset({1,2}), 3}
This was introduced on purpose 17 years ago in 19c2d778 so it's unlikely to
change.
----------
nosy: +remi.lapeyre
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue40853>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com