[docs] [issue18146] Document miss, Stats objects has no method called "print_results"

hanks report at bugs.python.org
Thu Jun 6 06:16:09 CEST 2013


New submission from hanks:

link: http://docs.python.org/2/library/profile.html

The example in this page:

import cProfile, pstats, io
pr = cProfile.Profile()
pr.enable()
... do something ...
pr.disable()
s = io.StringIO()
ps = pstats.Stats(pr, stream=s)
ps.print_results()  # actually Stats objects has no method called "print_results"

----------
assignee: docs at python
components: Documentation
messages: 190705
nosy: docs at python, hanks
priority: normal
severity: normal
status: open
title: Document miss, Stats objects has no method called "print_results"
type: enhancement
versions: Python 2.7

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


More information about the docs mailing list