[Tutor] Further pickle problem :0(

Alan Gauld alan.gauld at btinternet.com
Sat Nov 19 17:54:44 CET 2011


On 19/11/11 15:33, Joe Batt wrote:

> file=open('///Users/joebatt/Desktop/banner.p.webarchive','r')

Try opening it on binary mode.
Pickle files are not plain text.

> a=pickle.load(file)
> file.close()
> print (a)

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list