diff -r 94a634e194e7 -r 9e86d3b893bb Doc/library/profile.rst --- a/Doc/library/profile.rst Mon Oct 08 16:21:06 2012 +0200 +++ b/Doc/library/profile.rst Mon Oct 08 16:45:59 2012 +0200 @@ -221,10 +221,10 @@ reading the source code for these modules. -.. function:: run(command, filename=None, sort=-1]) +.. function:: run(command, filename=None, sort=-1) This function takes a single argument that can be passed to the :func:`exec` - :func:`exec` function, and optionally a file name and a sorting + function, and optionally a file name and a sorting directive. In all cases this routine attempts to :func:`exec` its first argument, and gather profiling statistics from the execution. If no file name is present, then this function automatically @@ -278,7 +278,7 @@ ``'pcalls'`` (sort by primitive number of calls), ``'time'``, ``'totime'`` (sort by total time), ``'cumulative'``, ``'cumtime'`` (sort by cumulative time), ``'line'`` (sort by line number). The default is ``'stdname'``. For additional - information, refer to :meth:`Stats.sort_stats`. + information, refer to :meth:`pstats.Stats.sort_stats`.