[New-bugs-announce] [issue12324] [3.2] sorted(big dict)

DDarko report at bugs.python.org
Mon Jun 13 12:18:26 CEST 2011


New submission from DDarko <ddarko.dd at gmail.com>:

I added an example to reproduce the bug.
>From the command line the same code:
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) [GCC 4.5.2] on linux2

$ python sort_test.py

Everything fine.

Python 3.2 (r32:88445, Mar 25 2011, 19:28:28) [GCC 4.5.2] on linux2

$ python3 sort_test.py 
Traceback (most recent call last):
  File "sort_test.py", line 1821, in <module>
    r = sorted(d.items(), key=operator.itemgetter(1), reverse=1)
TypeError: unorderable types: dict() < dict()

----------
files: sort_test.py
messages: 138231
nosy: DDarko
priority: normal
severity: normal
status: open
title: [3.2] sorted(big dict)
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file22339/sort_test.py

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


More information about the New-bugs-announce mailing list