This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Document miss, Stats objects has no method called "print_results"
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Example for Profile Module shows incorrect method
View: 18033
Assigned To: docs@python Nosy List: dmi.baranov, docs@python, hanks
Priority: normal Keywords:

Created on 2013-06-06 04:16 by hanks, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg190705 - (view) Author: hanks (hanks) Date: 2013-06-06 04:16
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"
msg190707 - (view) Author: Dmi Baranov (dmi.baranov) * Date: 2013-06-06 09:08
Duplication of issue 18033
History
Date User Action Args
2022-04-11 14:57:46adminsetgithub: 62346
2013-06-06 09:40:47r.david.murraysetsuperseder: Example for Profile Module shows incorrect method
resolution: duplicate
stage: resolved
2013-06-06 09:14:13hankssetstatus: open -> closed
2013-06-06 09:08:56dmi.baranovsetnosy: + dmi.baranov
messages: + msg190707
2013-06-06 04:16:09hankscreate