home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
p
/
python
/
pyhtmldoc
/
f
/
formatter_
< prev
next >
Wrap
Text File
|
1996-11-14
|
1KB
|
24 lines
<TITLE>Formatter Implementations -- Python library reference</TITLE>
Next: <A HREF="../t/the_writer_interface" TYPE="Next">The Writer Interface</A>
Prev: <A HREF="../t/the_formatter_interface" TYPE="Prev">The Formatter Interface</A>
Up: <A HREF="../f/formatter" TYPE="Up">formatter</A>
Top: <A HREF="../t/top" TYPE="Top">Top</A>
<H2>10.10.2. Formatter Implementations</H2>
Two implementations of formatter objects are provided by this module.
Most applications may use one of these classes without modification or
subclassing.
<P>
<DL><DT><B>NullFormatter</B> ([<VAR>writer</VAR>@varcode = <VAR>None</VAR>]) -- function of module formatter<DD>
A formatter which does nothing. If <CODE>writer</CODE> is omitted, a
<CODE>NullWriter</CODE> instance is created. No methods of the writer are
called by <CODE>NullWriter</CODE> instances. Implementations should inherit
from this class if implementing a writer interface but don't need to
inherit any implementation.
</DL>
<DL><DT><B>AbstractFormatter</B> (<VAR>writer</VAR>) -- function of module formatter<DD>
The standard formatter. This implementation has demonstrated wide
applicability to many writers, and may be used directly in most
circumstances. It has been used to implement a full-featured
world-wide web browser.
</DL>