Winge IDE Issue - an suggestions?

Fredrik Lundh fredrik at pythonware.com
Fri Dec 17 09:19:52 CET 2004


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> 






More information about the Python-list mailing list