1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module diag</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>diag</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/yosi/CVSROOT/WWW/2000/10/swap/diag.py">/Users/yosi/CVSROOT/WWW/2000/10/swap/diag.py</a></font></td></tr></table>
<p><tt>Use this with diagnostics so that it can be changed as necessary<br>
For example, sometimes want on stdout maybe or in a scroll window....<br>
<br>
Let's replace this with pythong logging stuff.<br>
at least get it to the point where "make quick" in swap/test works.<br>
<br>
There is some wierd stuff here because TimBL and I couldn't<br>
figure out how to share the chatty global across modules.<br>
Surely Daniel K and DanC should be able figure that out.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="os.html">os</a><br>
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
</td><td width="25%" valign=top><a href="traceback.html">traceback</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-printState"><strong>printState</strong></a>(prefix<font color="#909090">='#trace# '</font>)</dt><dd><tt>Output the (caller's) function name and local variables</tt></dd></dl>
<dl><dt><a name="-progress"><strong>progress</strong></a>(*args)</dt><dd><tt>##lineCount = [0]</tt></dd></dl>
<dl><dt><a name="-setTracking"><strong>setTracking</strong></a>(x)</dt></dl>
<dl><dt><a name="-setVerbosity"><strong>setVerbosity</strong></a>(x)</dt></dl>
<dl><dt><a name="-utf_8_encode"><strong>utf_8_encode</strong></a>(...)</dt></dl>
<dl><dt><a name="-verbosity"><strong>verbosity</strong></a>()</dt></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>chatty_flag</strong> = 0<br>
<strong>file_list</strong> = []<br>
<strong>print_all_file_names</strong> = 0<br>
<strong>tracking</strong> = 0</td></tr></table>
</body></html>
|