Since we have established that data doesn't go out of scope... > > > for line in file: > > > try: > > > data, garbage = string.split(line, ':') > > > except ValueError: data = line should fix it, no? The comment about data going out of scope confused me but now that thats been cleared up the simple fix above should work (my trivial tests so far suggest it does...) Alan g