Yeah, that is it. I was pretty sure it was a problem closing the file, but 
thought that the file didn't remain open since I didn't assign it to a 
variable, which is quite foolish actually - thanks Stefan!

However, if I do as Parashurama suggested:
    
    
    try:
      p.open(fileName)
    except:
      raise newException(IOError, (fileName & " not found"))
    

I get the generic parsecsv error instead of my custom exception, if the file 
isn't found. This isn't _too_ bad, since I can find the errant name based on 
the line numbers in the stack trace, but it would be nice to keep the exception 
I have. Is there a way to close the system.open(), or maybe to test for the 
file without using open()? 

Reply via email to