Message7680
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() |
|
Date |
User |
Action |
Args |
2013-02-14 02:57:52 | fwierzbicki | set | messageid: <1360810672.76.0.671802759118.issue1767@psf.upfronthosting.co.za> |
2013-02-14 02:57:52 | fwierzbicki | set | recipients:
+ fwierzbicki, amak, juneau001, egg, jeff.allen |
2013-02-14 02:57:52 | fwierzbicki | link | issue1767 messages |
2013-02-14 02:57:52 | fwierzbicki | create | |
|