[issue2606] trace module crashes due to using wrong sort idiom

Mark Summerfield report at bugs.python.org
Thu Apr 10 14:19:18 CEST 2008


New submission from Mark Summerfield <mark at qtrac.eu>:

In Py30a4's trace.py there is this:

    calls = self.calledfuncs.keys()
    calls.sort()

which causes:
    AttributeError: 'dict_keys' object has no attribute 'sort'

There are two other occurrences of this idiom in trace.py (just search
for ".sort"). I guess they should be easy to fix.

----------
components: Library (Lib)
messages: 65290
nosy: mark
severity: normal
status: open
title: trace module crashes due to using wrong sort idiom
type: behavior
versions: Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2606>
__________________________________


More information about the Python-bugs-list mailing list