pickle error

Jp Calderone exarkun at flashmail.com
Sat Feb 26 14:18:52 EST 2000


When trying to run this program:

	import pickle

	file = open('pickle.dat', 'r')  
	P = pickle.Unpickler(file) 
	entry = P.load() 
	print entry 

the python interpreter gives me this error:

	Traceback (innermost last):
	  File "Pickle.py", line 1, in ?
	    import pickle
	  File "/usr/lib/python1.5/pickle.py", line 4, in ?
	    See module copy_reg for a mechanism for registering custom picklers.
	AttributeError: load

Can anybody tell me what's up?


--
A sad spectacle.  If they be inhabited, what a scope for misery 
and folly.  If they be not inhabited, what a waste of space.
                -- Thomas Carlyle, looking at the stars
--
 7:17pm up 24 days, 1:49, 0 users, load average: 0.07, 0.05, 0.01



More information about the Python-list mailing list