[Tutor] Unpickling a Pickled Object
Learn Python
learnpython@hotmail.com
Fri, 04 May 2001 08:19:18 -0000
hi Jethro,
c'd you please tell why you think the __init__ s'd'nt be called?
If i'm doing some initialisation in __init__
whch in turn will be used by other methods then the unpickling w'd'nt
be of much use right?
my code might fail bcos certain things did'nt get initialized.
Do we have a
private void readObject() java equivalent in python? which w'd automatically
get called when we "deserialize" the object / in this case "unpickle". Then
we can probably initialize some stuff there?
karthik
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.