Hi all, Can someone please help in this below? class F(object) : ...: def __init__(self, amt) : self.amt = amt ...: def dis(self) : print 'Amount : ', self.amt ...: def add(self, na) : ...: self.amt += na ...: F.dis(self)
pickle.dumps(F) gives PicklingError: Can't pickle <class '__main__.F'>: it's not found as __main__.F What is my mistake? I want to pickle and shelve classes as well as instances. With warm regards, -Payal -- _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor