[Python-Dev] CVS: python/dist/src/Lib/xml/dom minidom.py,1.13,1.14
Tue, 21 Nov 2000 17:26:14 -0500 (EST)
>>>>> "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"