Python newbie with a problem writing files

Damjan gdamjan at gmail.com
Mon Sep 4 18:39:34 EDT 2006


> Code:
<snip>
>     xml_output.write = (feed_title)

How did you come up with that "=" there??!
The correct line is:
        xml_output.write(feed_title)


> Traceback (most recent call last):
>   File "C:/My_Blogroll/JJ_Blogroll2", line 11, in ?
>     xml_output.write = (feed_title)
> AttributeError: 'file' object attribute 'write' is read-only

-- 
damjan



More information about the Python-list mailing list