with open('data', 'w') as f:
pickle.dumps({'foo':111},f)
results in
an integer is required (got type _io.TextIOWrapper)
How can I fix this?
I am pretty sure An integer is required? open() was not called beforehand.
Python version is 3.6.2