47 lines
3.4 KiB
HTML
47 lines
3.4 KiB
HTML
|
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: module geosolver.diagnostic</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><a href="geosolver.html"><font color="#ffffff">geosolver</font></a>.diagnostic</strong></big></big></font></td
|
|
><td align=right valign=bottom
|
|
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/rick/Programming/Python/GeoSolver/geosolver/diagnostic.py">/home/rick/Programming/Python/GeoSolver/geosolver/diagnostic.py</a></font></td></tr></table>
|
|
<p><tt>Mechanism for selective printing of diagnostic messages<br>
|
|
<br>
|
|
Programs call <a href="#-diag_print">diag_print</a>(str, code) at points where diagnotistic information<br>
|
|
is available. The user of these programs sets diag_codes to some regular expression.<br>
|
|
Only when the code argument in diag_print matches the regular expression diag_codes, <br>
|
|
then the message is printed. Messages are printed to diag_stream, which defaults to <br>
|
|
sys.stdout.</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="re.html">re</a><br>
|
|
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
|
|
</td><td width="25%" valign=top></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="-diag_direct"><strong>diag_direct</strong></a>(stream)</dt><dd><tt>set stream to which messages are printed</tt></dd></dl>
|
|
<dl><dt><a name="-diag_print"><strong>diag_print</strong></a>(str, code<font color="#909090">=''</font>)</dt></dl>
|
|
<dl><dt><a name="-diag_select"><strong>diag_select</strong></a>(pattern)</dt><dd><tt>Set regexp pattern to filter which messages are printed.</tt></dd></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>diag_selector</strong> = <_sre.SRE_Pattern object at 0xb7ec9b60><br>
|
|
<strong>diag_stream</strong> = <open file '<stdout>', mode 'w' at 0xb7eb3068></td></tr></table>
|
|
</body></html> |