[issue20192] pprint chokes on set containing frozenset

Serhiy Storchaka report at bugs.python.org
Tue Dec 2 10:15:15 CET 2014


Serhiy Storchaka added the comment:

For now sets and frozensets are comparable with other types in Python 2.

>>> frozenset(xrange(10)) < 1
False
>>> set(xrange(10)) < 1
False

The only known to me uncomparable types in Python 2 are naive and aware datetime.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20192>
_______________________________________


More information about the Python-bugs-list mailing list