breamoreboy at yahoo.co.uk
Wed Feb 12 21:38:49 CET 2014
On 12/02/2014 20:21, eneskristo at gmail.com wrote:
> I think of it as a bit strange. Should I report it as a bug? I was trying to incorporate a save/load, and this happened.
> def save():
> target = open ("save.swroc", 'w')
> target.write([counter, loop, number_of_competitors, competitors])
> def load():
> target = open("save.swroc", 'r')
> the_array = target
> counter = the_array
> loop = the_array
> number_of_competitors = the_array
> competitors = the_array
> Swroc is an nonexisting file format that i just made up, an acronym of the program
What is it, trying to write a Python list to a file or trying to access
offsets into a file handle?
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
This email is free from viruses and malware because avast! Antivirus protection is active.
More information about the Python-list