On 12/02/2014 20:21, eneskri...@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[0]
         loop = the_array[1]
         number_of_competitors = the_array[2]
         competitors = the_array[3]
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.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to