homepage

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 Evan Hubinger
Recipients Antony.Lee, Evan Hubinger, belopolsky
Date 2015年08月04日.20:55:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1438721727.6.0.091342540998.issue24649@psf.upfronthosting.co.za>
In-reply-to
Content
Added a patch that clears up the incorrect help. It now accurately reflects the only constraints that the code actually puts on the arguments:
 if listfuncs and (count or trace):
 _err_exit("cannot specify both --listfuncs and (--trace or --count)")
 if not (count or trace or report or listfuncs or countcallers):
 _err_exit("must specify one of --trace, --count, --report, "
 "--listfuncs, or --trackcalls")
To reflect both of those constraints, and only those constraints, the part of the help message in question now reads:
Otherwise, at least one of the following options must be given:
-t, --trace Print each line to sys.stdout before it is executed.
-c, --count Count the number of times each line is executed
 and write the counts to <module>.cover for each
 module executed, in the module's directory.
 See also `--coverdir', `--file', `--no-report' below.
-l, --listfuncs Keep track of which functions are executed at least
 once and write the results to sys.stdout after the
 program exits. Cannot be specified alongside `--trace`
 or `--count`.
-T, --trackcalls Keep track of caller/called pairs and write the
 results to sys.stdout after the program exits.
-r, --report Generate a report from a counts file; do not execute
 any code. `--file' must specify the results file to
 read, which must have been created in a previous run
 with `--count --file=FILE'.
History
Date User Action Args
2015年08月04日 20:55:27Evan Hubingersetrecipients: + Evan Hubinger, belopolsky, Antony.Lee
2015年08月04日 20:55:27Evan Hubingersetmessageid: <1438721727.6.0.091342540998.issue24649@psf.upfronthosting.co.za>
2015年08月04日 20:55:27Evan Hubingerlinkissue24649 messages
2015年08月04日 20:55:27Evan Hubingercreate

AltStyle によって変換されたページ (->オリジナル) /