[XML-SIG] HtmlBuilder

Fred L. Drake Fred L. Drake, Jr." <fdrake@acm.org
Mon, 8 Mar 1999 12:35:04 -0500 (EST)

Andrew M. Kuchling writes:
 > b = HTMLBuilder( ignore_mismatched_end_tags = 1 )
 > 	(This would be implemented by allowing keyword arguments to
 > the constructor, and saving a copy of the keyword dictionary.  That
 > allows for new options in future, and saves the constructor from
 > having lots of lines like 
 > self.ignore_mismatched_end_tags = ignore_mismatched_end_tags .)

  And completely avoids the checks for matching parameter keywords to
formal parameter names.  With explicitly named options, errors can be
caught earlier.

 > 	The default behaviour would be to raise an exception, which is
 > in keeping with Python's general philosophy.

  I agree.


Fred L. Drake, Jr.	     <fdrake@acm.org>
Corporation for National Research Initiatives
1895 Preston White Dr.	    Reston, VA  20191