home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / python / pyhtmldoc / f / formatter_ < prev    next >
Text File  |  1996-11-14  |  1KB  |  24 lines

  1. <TITLE>Formatter Implementations -- Python library reference</TITLE>
  2. Next: <A HREF="../t/the_writer_interface" TYPE="Next">The Writer Interface</A>  
  3. Prev: <A HREF="../t/the_formatter_interface" TYPE="Prev">The Formatter Interface</A>  
  4. Up: <A HREF="../f/formatter" TYPE="Up">formatter</A>  
  5. Top: <A HREF="../t/top" TYPE="Top">Top</A>  
  6. <H2>10.10.2. Formatter Implementations</H2>
  7. Two implementations of formatter objects are provided by this module.
  8. Most applications may use one of these classes without modification or
  9. subclassing.
  10. <P>
  11. <DL><DT><B>NullFormatter</B> ([<VAR>writer</VAR>@varcode = <VAR>None</VAR>]) -- function of module formatter<DD>
  12. A formatter which does nothing.  If <CODE>writer</CODE> is omitted, a
  13. <CODE>NullWriter</CODE> instance is created.  No methods of the writer are
  14. called by <CODE>NullWriter</CODE> instances.  Implementations should inherit
  15. from this class if implementing a writer interface but don't need to
  16. inherit any implementation.
  17. </DL>
  18. <DL><DT><B>AbstractFormatter</B> (<VAR>writer</VAR>) -- function of module formatter<DD>
  19. The standard formatter.  This implementation has demonstrated wide
  20. applicability to many writers, and may be used directly in most
  21. circumstances.  It has been used to implement a full-featured
  22. world-wide web browser.
  23. </DL>
  24.