New submission from Mitchell Model <m...@acm.org>: I created a profile file, started up python3 -m pstats myfilename, did strip, then "stats 10" and got:
stats 10 Mon Jan 25 17:58:39 2010 cd.profile 17529566 function calls (17528644 primitive calls) in 88.626 CPU seconds Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/runpy.py", line 128, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/runpy.py", line 34, in _run_code exec(code, run_globals) File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/pstats.py", line 689, in <module> browser.cmdloop() File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/cmd.py", line 139, in cmdloop stop = self.onecmd(line) File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/cmd.py", line 216, in onecmd return func(arg) File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/pstats.py", line 665, in do_stats return self.generic('print_stats', line) File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/pstats.py", line 586, in generic getattr(self.stats, fn)(*processed) File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/pstats.py", line 358, in print_stats width, list = self.get_print_list(amount) File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/pstats.py", line 331, in get_print_list list, msg = self.eval_print_amount(selection, list, msg) File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/pstats.py", line 314, in eval_print_amount new_list = list[:count] TypeError: 'dict_keys' object is not subscriptable ---------- components: Library (Lib) messages: 98304 nosy: MLModel severity: normal status: open title: interactive pstats broken versions: Python 3.1 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7781> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com