On Fri, Nov 18, 2011 at 11:12 AM, Joe Batt <[email protected]> wrote:
>
> pickledfile=open('///Users/joebatt/Desktop/python/pickledpuzzle5.txt','w')
> pickle.dump(filecontents,pickledfile)
> pickledfile.close()
>
>
A pickle is a binary object, so you'll need to open your picklefile in
binary mode:
pickledfile=open('///Users/joebatt/Desktop/python/pickledpuzzle5.txt','wb')
--
Jerry
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor