On Fri, Nov 18, 2011 at 11:12 AM, Joe Batt <joeb...@hotmail.co.uk> 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  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to