View Single Post
Posts: 1,101 | Thanked: 1,185 times | Joined on Aug 2008 @ Spain
#2
You should consult the python library reference.
file objects doesn't have the append method, only mutable secuence types (like lists) have .append
On files, you can open the file for appending, so writes get appended to the end of the file. Do not confuse the file on disk with a file object.