[Zope] Appending to a file in Python
Paul Winkler
pw_lists at slinkp.com
Thu May 20 12:51:24 EDT 2004
On Thu, May 20, 2004 at 11:36:36AM -0500, Laura McCord wrote:
>
> I have been getting an error : 'file' object has no attribute 'append'
That's because python file objects really do not have an
append method :-) Try the write method instead.
It's good to get familiar with the Python docs, particularly
the standard library reference:
http://docs.python.org/lib/lib.html
In this case, under "built-in types", you will find this:
http://docs.python.org/lib/bltin-file-objects.html
--
Paul Winkler
http://www.slinkp.com
More information about the Zope
mailing list