![]() ![]() |
||
![]() |
![]() |
|
![]() |
[wingide-users] Index errors.George Grisancich georgeg@caa.org.auTue, 10 Apr 2001 13:33:16 +1000
Hi,
I'm having problems with Wing, in that the following code snippet
produces a "Sequence Index out of range: error only when run from Wing.
def __getitem__(self, index):
self.line = self.infile.readline()
if self.line:
return self.line
else:
raise IndexError
--
----------------------------------------------------------------------
George Grisancich Information Technology Manager
Community Aid Abroad Oxfam Australia http://www.caa.org.au
tele: + 61 3 9289 9441 fax: +61 3 9419 5318 mobile: +61 419 283 833
----------------------------------------------------------------------
Run by Mailman v 2.0.8 |
|
|
Copyright (c) 2000-2002, Archaeopteryx Software, Inc. Legal Statements | ||