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
នៅថ្ងៃ ពុធ 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,
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
-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
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:
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)