[ python-Bugs-1482988 ] docs for 'profile' should refer to pstats.Stats

SourceForge.net noreply at sourceforge.net
Sat May 6 14:54:44 CEST 2006


Bugs item #1482988, was opened at 2006-05-06 15:54
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1482988&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Ori Peleg (oripel)
Assigned to: Nobody/Anonymous (nobody)
Summary: docs for 'profile' should refer to pstats.Stats

Initial Comment:
The docs for module 'profile' refer to 'profile.Stats',
which look like:

def Stats(*args):
    print 'Report generating functions are in the
"pstats" module\a'

This is true in older Python versions, as well as 2.5a2:

http://docs.python.org/dev/lib/module-profile.html

Suggestion: have the documentation point to
pstats.Stats instead, and possibly remove the
placeholder 'Stats' in module profile, or have it raise
an exception instead of printing an error.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1482988&group_id=5470


More information about the Python-bugs-list mailing list