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:
> TypeError: can't pickle instancemethod objects

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.)

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to