diff options
author | Thomas Wouters <thomas@python.org> | 2000-07-16 12:04:32 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2000-07-16 12:04:32 (GMT) |
commit | 7e47402264cf87b9bbb61fc9ff610af08add7c7b (patch) | |
tree | 8103f0f2df8ca09de0b8cfd9d38b4982c6993f16 /Lib/pstats.py | |
parent | c533e4a01207f74b9c4f9a7414631a3c7b711595 (diff) | |
download | cpython-7e47402264cf87b9bbb61fc9ff610af08add7c7b.zip cpython-7e47402264cf87b9bbb61fc9ff610af08add7c7b.tar.gz cpython-7e47402264cf87b9bbb61fc9ff610af08add7c7b.tar.bz2 |
Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").
There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
Diffstat (limited to 'Lib/pstats.py')
-rw-r--r-- | Lib/pstats.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py index 413351d..558962e 100644 --- a/Lib/pstats.py +++ b/Lib/pstats.py @@ -49,16 +49,16 @@ class Stats: The big change from the previous Profiler (in terms of raw functionality) is that an "add()" method has been provided to combine Stats from several distinct profile runs. Both the constructor and the add() - method now take arbitrarilly many file names as arguments. + method now take arbitrarily many file names as arguments. - All the print methods now take an argument that indicats how many lines + All the print methods now take an argument that indicates how many lines to print. If the arg is a floating point number between 0 and 1.0, then - it is taken as a decimal percentage of the availabel lines to be printed + it is taken as a decimal percentage of the available lines to be printed (e.g., .1 means print 10% of all available lines). If it is an integer, it is taken to mean the number of lines of data that you wish to have printed. - The sort_stats() method now processes some additionaly options (i.e., in + The sort_stats() method now processes some additional options (i.e., in addition to the old -1, 0, 1, or 2). It takes an arbitrary number of quoted strings to select the sort order. For example sort_stats('time', 'name') sorts on the major key of "internal function time", and on the minor @@ -165,7 +165,7 @@ class Stats: - # list the tuple indicies and directions for sorting, + # list the tuple indices and directions for sorting, # along with some printable description sort_arg_dict_default = {\ "calls" : (((1,-1), ), "call count"),\ @@ -447,7 +447,7 @@ class Stats: class TupleComp: """This class provides a generic function for comparing any two tuples. - Each instance records a list of tuple-indicies (from most significant + Each instance records a list of tuple-indices (from most significant to least significant), and sort direction (ascending or decending) for each tuple-index. The compare functions can then be used as the function argument to the system sort() function when a list of tuples need to be |