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

Greg Stein gstein@lyra.org
Tue, 21 Nov 2000 14:55:39 -0800

On Tue, Nov 21, 2000 at 05:26:14PM -0500, Jeremy Hylton wrote:
> >>>>> "PP" == Paul Prescod <paulp@ActiveState.com> writes:
>   PP> Andrew Kuchling wrote:
>   >> ...
>   >> Indeed; I think the proxies really obfuscated the code.  Some
>   >> simple parameter checking, though, shouldn't add too much of a
>   >> burden, and will protect users from common mistakes that will
>   >> result in invalid trees.
>   PP> Those checks would slow down the original tree building unless
>   PP> we split the interface into "internal" methods that we use
>   PP> ourself and "external methods" that do the extra checking. Worth
>   PP> the effort and extra code complexity? Maybe...maybe not.
> Could those checks be implemented as assertions?  If so, people who
> care about speed can use "python -O"

+1 ... that would be the way to do it.


Greg Stein, http://www.lyra.org/