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.

Author amyodov
Recipients amyodov, georg.brandl
Date 2009-08-13.16:57:15
SpamBayes Score 5.118761e-11
Marked as misclassified No
Message-id <1250182637.82.0.304646827828.issue6696@psf.upfronthosting.co.za>
In-reply-to
Content
Seems like a minor documentation issue in 2.x became more significant 
one in 3.x.

In Python 2.6 (and lower), the documentation on Profile objects 
discussed them as a part of hotshot module, while omitting the fact 
that any profiler module, either of profile/cProfile/hotshot, supports 
them (though in fact, hotshot Profile objects have an api a bit 
different from profile/cProfile Profile objects). Note http://
docs.python.org/2.6/library/hotshot.html#profile-objects - there is no 
separate documentation of non-hotshot Profile objects, though they are 
largely similar. This is a minor issue which could probably be fixed in 
2.7 as a separate problem - otherwise it is pretty unclear from the 
documentation, what methods do cProfile Profile objects support (eg, 
they support enable()/disable() and runcall() methods, which is pretty 
useful for profiling, but impossible to find in documentation).

In Python 3.1, looks like everything related to hotshot was removed 
from the documents, including the documentation on Profile objects - 
which should not have been. This means, that now the documentation on 
profilers does not cover any Profile classes at all - see http://
docs.python.org/3.1/library/profile.html . For example, the official 
documentation doesn't say any way to profile a function passing 
arguments to it and receiving its result - while profile/cProfile 
Profile objects still do support runcall() method.
History
Date User Action Args
2009-08-13 16:57:18amyodovsetrecipients: + amyodov, georg.brandl
2009-08-13 16:57:17amyodovsetmessageid: <1250182637.82.0.304646827828.issue6696@psf.upfronthosting.co.za>
2009-08-13 16:57:15amyodovlinkissue6696 messages
2009-08-13 16:57:15amyodovcreate