I'm trying to store some data in a binary file:
import os, pickle
o = some_object()
file = open('test', 'wb') #this causes the error
pickle.dump(o, file)
file.close()
I get this error: IOError: invalid mode: wb
It doesn't work (neither on test server or GAE itself), apparantly because it does't have the write permission.
How can I create files on Appengine?