manipulating files within 'for'

Emile van Sebille emile at
Fri Sep 12 19:43:08 CEST 2008

Ben Keshet wrote:
> Hi Pythoneers,
> I have a question about a code I wrote with the help of someone. The 
> code below copy a few lines from different files into one file. It works 
> fine as it is given here and generates the new file 'pockets.out' 
> correctly, but says:" returned exit code 0". However, if I add 
> more values to 'receptor' (say, receptor = ['1AZM' '1ADS']) 

At risk of stating the obvious, you _did_ put this in properly as

receptors = ['1AZM', '1ADS']



it gives an
> error: "Exception raised while running script".
> Can anyone please advice me? Why is it giving an error on multiple x but 
> runs well with one (I made sure that all files and folders exist, etc.). 
> What does exit code 0 mean?

No error

> what does "exception raised" mean?


More information about the Python-list mailing list