Hi list,

I've just been writing a small script to parse some xml files and output tab
separated values into a separate file.

I was surprised to see that my function "processXML(fpart)" was failing with
an error along the lines of "processXML not defined"

I looked over my code (all 41 lines!) and couldn't find anything, then on a
hunch i moved the def statement _above_ the rest of my code and hey presto
it worked.

I vaguely understand why this is happening, but can someone explain it to
me.

If this makes no sense then tell me that too :-)

cheers,

nibudh.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to