Message7680

Author fwierzbicki
Recipients amak, egg, fwierzbicki, jeff.allen, juneau001
Date 2013-02-14.02:57:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1360810672.76.0.671802759118.issue1767@psf.upfronthosting.co.za>
In-reply-to
Content
OK, I found a much simpler demonstration of this problem while trying to figure out why test_pprint wasn't working.

Python 2.7.3 (default, Aug  1 2012, 05:14:39) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> x = frozenset([frozenset([1,2]), frozenset([3,4])])
>>> sorted(x)
[frozenset([1, 2]), frozenset([3, 4])]

Jython 2.7b1 (default:d77503b7a755+, Feb 8 2013, 17:23:40) 
[OpenJDK 64-Bit Server VM (Oracle Corporation)] on java1.7.0_09
Type "help", "copyright", "credits" or "license" for more information.
>>> x = frozenset([frozenset([1,2]), frozenset([3,4])])
>>> sorted(x)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: cannot compare sets using cmp()
History
Date User Action Args
2013-02-14 02:57:52fwierzbickisetmessageid: <1360810672.76.0.671802759118.issue1767@psf.upfronthosting.co.za>
2013-02-14 02:57:52fwierzbickisetrecipients: + fwierzbicki, amak, juneau001, egg, jeff.allen
2013-02-14 02:57:52fwierzbickilinkissue1767 messages
2013-02-14 02:57:52fwierzbickicreate