[docs] [issue18033] Example for Profile Module shows incorrect method

Olivier Hervieu report at bugs.python.org
Wed Jul 3 19:24:13 CEST 2013


Olivier Hervieu added the comment:

Here is a fixed version for python2.7. Using StringIO instead of io module fixes the problem pointed by Ezio.
The print_stats method dumps the stats either on sys.stdout if `Stats` class is declared without a stream specification or in the given stream parameter (the name print_stats may be a bit misleading).

----------
nosy: +ohe
Added file: http://bugs.python.org/file30760/issue18033_py2.patch

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


More information about the docs mailing list