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

2008-04-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: I've further simplified the code by eliminating the local variables, and committed that as r62270. -- nosy: +loewis resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]>

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

2008-04-10 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: I've changed them to sorted(obj.keys()) -- keywords: +patch nosy: +gpolo Added file: http://bugs.python.org/file9996/issue_2606.diff __ Tracker <[EMAIL PROTECTED]> __

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

2008-04-10 Thread Mark Summerfield
New submission from Mark Summerfield <[EMAIL PROTECTED]>: 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