On Sat, 19 Nov 2011, Joe Batt wrote:
Hi All Could some kind soul please explain why you get a stack underflow and a stack overflow.I am getting the following error in Python 3 Traceback (most recent call last): File "/Users/joebatt/Desktop/python/pickling puzzle 5.py", line 39, in <module> a=pickle.load(file) _pickle.UnpicklingError: unpickling stack underflow when I am running the following import pickle file=open('///Users/joebatt/Desktop/banner.p.webarchive','rb') a=pickle.load(file) file.close() print (a)
When you created the pickle file, did you create it in binary form (with "wb")?
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor