summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/trace.py
Commit message (Collapse)AuthorAgeFilesLines
* This file was moved to Lib/.Jeremy Hylton2003-07-071-729/+0
|
* Make the comment prefix 7 character long, so the lines are properlyWalter Dörwald2003-06-191-1/+1
| | | | aligned.
* Whitespace normalization.Tim Peters2003-04-241-14/+14
|
* add missing "summary" from long options listSkip Montanaro2003-02-031-1/+1
|
* Correct buggy module docstring.Jeremy Hylton2002-12-111-17/+30
| | | | | | Replace use of homebrew boolean with True/False. Reflow lots more long lines.
* Fix one bug and reformat lots of code.Jeremy Hylton2002-12-111-50/+72
| | | | | | | | | The bug is a reference to co_first_lineno that should be co_firstlineno. The only other substantial change is to speed up localtrace_count() by avoiding *costly* calls to inspect module. It's trivial to get the filename and lineno directly from the frame. Otherwise, delete commented out debug code and reflow very long lines.
* Patch #542562, file 25252: Remove changelog.Martin v. Löwis2002-11-221-38/+0
|
* Apply diff2.txt from SF patch http://www.python.org/sf/572113Walter Dörwald2002-09-111-12/+11
| | | | | | | | (with one small bugfix in bgen/bgen/scantools.py) This replaces string module functions with string methods for the stuff in the Tools directory. Several uses of string.letters etc. are still remaining.
* This is my patchMichael W. Hudson2002-08-151-34/+15
| | | | | | | | [ 587993 ] SET_LINENO killer Remove SET_LINENO. Tracing is now supported by inspecting co_lnotab. Many sundry changes to document and adapt to this change.
* * runctx - fix a couple typosSkip Montanaro2002-07-251-17/+21
| | | | | | | | | * globaltrace_lt - handle case where inspect.getmodulename doesn't return anything useful * localtrace_trace - handle case where inspect.getframeinfo doesn't return any context info I think both of the last two are caused by exec'd or eval'd code
* Checking in Zooko's version per SF patch #476866, plus my changes toGuido van Rossum2001-11-281-395/+429
| | | | the usage docs: (a) align properly, (b) explain properly.
* Replace all instances of err.strerror with err.Jeremy Hylton2001-10-081-6/+6
| | | | | | | The strerror attribute contained only partial information about the exception and produced some very confusing error messages. By passing err (the exception object itself) and letting it convert itself to a string, the error messages are better.
* Fix several bugs and add two features.Jeremy Hylton2001-05-081-34/+88
| | | | | | | | | | | | | | | | | | | | | | | | | Assertion error message had typos in arguments to string format. .cover files for modules in packages are now put in the right place. The code that generate .cover files seemed to prepend a "./" to many absolute paths, causing them to fail. The code now checks explicitly for absolute paths and leaves them alone. In trace/coverage code, recover from case where module has no __name__ attribute, when e.g. it is executed by PyRun_String(). In this case, assign modulename to None and hope for the best. There isn't anywhere to write out coverage data for this code anyway. Also, replace several sys.stderr.writes with print >> sys.stderr. New features: -C/--coverdir dir: Generate .cover files in specified directory instead of in the directory where the .py file is. -s: Print a short summary of files coverred (# lines, % coverage, name)
* Whitespace normalization.Tim Peters2001-01-171-5/+5
|
* satisfy the tabnannyJeremy Hylton2000-09-181-323/+322
|
* Python code coverage tool by Skip Montanaro and Andrew DalkeJeremy Hylton2000-08-031-0/+661