[issue24148] 'cum' not a valid sort key for pstats.Stats.sort_stats

2015-06-05 Thread Berker Peksag
Berker Peksag added the comment: Fixed! Thanks for the report, ramiro and thanks for the patch, Brandon. -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.5, Python 3.6 ___ Python tracker

[issue24148] 'cum' not a valid sort key for pstats.Stats.sort_stats

2015-06-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset bfc043eab54e by Berker Peksag in branch '3.4': Issue #24148: Fix incorrect Stats.sort_stats() example. https://hg.python.org/cpython/rev/bfc043eab54e New changeset ffb7019d70cf by Berker Peksag in branch '3.5': Issue #24148: Fix incorrect Stats.sort

[issue24148] 'cum' not a valid sort key for pstats.Stats.sort_stats

2015-06-04 Thread Brandon Milam
Brandon Milam added the comment: They are correct. 'cum' is not one of the available keywords and so here is the fix changing it to say 'cumulative' for consistency as ramiro suggested. -- keywords: +patch nosy: +jbmilam Added file: http://bugs.python.org/file39627/profile_example_fix.p

[issue24148] 'cum' not a valid sort key for pstats.Stats.sort_stats

2015-05-09 Thread ramiro
New submission from ramiro: On the documentation page "The Python Profilers" https://docs.python.org/3.4/library/profile.html#instant-user-s-manual the following example is given: p.sort_stats('time', 'cum').print_stats(.5, 'init') This raises a KeyError, because 'cum' is not available as a s