Re: [Tutor] cannot pickle instancemethod objects

2007-06-19 Thread Kent Johnson
hok kakada wrote: >>> Actually, I use the translate-toolkit from >>> http://translate.sourceforge.net/snapshots/translate-toolkit-1.0.1rc1/ >>> I just found the problem that it is because of the LevenshteinComparer. >>> Once I assign self.comparer = None, the I can dump the matcher >>> successfull

Re: [Tutor] cannot pickle instancemethod objects

2007-06-18 Thread hok kakada
នៅថ្ងៃ ពុធ 13 មិថុនា 2007 19:09, Kent Johnson បាន​សរសេរ​ថា ៖ > hok kakada wrote: > >> What kind of object is matcher? Does it have any attributes that are > >> functions? (Not methods you defined for the class, but functions or > >> methods that you assign to attributes of self.) > > > > Actually,

Re: [Tutor] cannot pickle instancemethod objects

2007-06-13 Thread Kent Johnson
hok kakada wrote: >> What kind of object is matcher? Does it have any attributes that are >> functions? (Not methods you defined for the class, but functions or >> methods that you assign to attributes of self.) > Actually, I use the translate-toolkit from > http://translate.sourceforge.net/snap

Re: [Tutor] cannot pickle instancemethod objects

2007-06-12 Thread Andreas Kostyrka
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 pickle is not capable of pickling class objects. Only instances of the class. Actually, pickle only records the name of the class an object belongs to, so renaming or moving pickled classes means additional work, to map old to new names. Andreas hok

Re: [Tutor] cannot pickle instancemethod objects

2007-06-12 Thread Kent Johnson
hok kakada wrote: > Dear everyone, > > I got a problem while pickling a class object. I have done something as below: > pickleFile = open(filename, 'wb') > pickle.dump(matcher, pickleFile) > pickleFile.close() > > where matcher is class object and I got the follow errors:

[Tutor] cannot pickle instancemethod objects

2007-06-11 Thread hok kakada
Dear everyone, I got a problem while pickling a class object. I have done something as below: pickleFile = open(filename, 'wb') pickle.dump(matcher, pickleFile) pickleFile.close() where matcher is class object and I got the follow errors: Traceback (most recent call last)