Mike Thompson wrote: > File "C:\Python23\Lib\site-packages\elementtree\ElementTree.py", line 709, in > _write > for n in node: > File "C:\Python23\Lib\site-packages\elementtree\ElementTree.py", line 227, in > __getitem__ > return self._children[index] > > The exception is triggered in ElementTree but the code is fine. Something > about the Wing IDE > debuger is causing this exception to be thrown.
note that the code is using a for-loop to process all items in a container object. the IndexError is supposed to tell the for-loop to stop; having a Python IDE report this as an error is remarkably brain-dead... (do they stop on StopIteration exceptions too? or IOError exceptions from open?) </F> -- http://mail.python.org/mailman/listinfo/python-list