On Fri, Dec 30, 2011 at 3:25 AM, Sayantan Datta <kenzo.zom...@gmail.com> wrote:
> did that, but the output file is still empty? Does the fault lie somewhere
> else?

I'm not sure if it's a copy-paste problem, but check your indentation:
your "if __name__" line seems to be indented, it should be flush left.
Indentation makes it part of the function, so your script will define
a function and never call it.

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to