Another newbee question
Robin Friedrich (friedric@rose.rsoc.rockwell.com)
Mon, 4 Apr 94 14:40:55 CDT
I get the following error from the following code
SyntaxError: 'continue' not properly in loop
I want to go back the next line in the for loop, that's all!
I've looked at other code were this construct is used, I'm sure my problem
is subtle.
...
file = open(filename,'r')
for line in file.readlines():
fields = string.split(line)
try:
if fields[3] == 'IN:' :
pass
elif fields[3] == 'OUT:' :
pass
else:
print 'Next'
--------> continue
prodkey = fields[4] + fields[2]
...