[Python-Dev] CVS: python/dist/src/Lib/xml/dom minidom.py,1.13,1.14

Fred L. Drake, Jr. fdrake@acm.org
Tue, 21 Nov 2000 17:41:32 -0500 (EST)

Jeremy Hylton writes:
 > Could those checks be implemented as assertions?  If so, people who
 > care about speed can use "python -O"

  Yes, but it is not clear that the checks are expensive.
  Another issue is compliance with the spec -- DOM level 1 states that
certain exceptions will be raised for various conditions, and using
assertions to check those would mean that exceptions would *not* be
raised in those cases.


Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Digital Creations