can't pickle instancemethod objects

Jim Lewis jim.lewis at miclog.com
Sun Jul 9 17:07:38 EDT 2006


> Here's a thought: comment out every attribute in your class, and then try
> pickling it. If it succeeds, uncomment just *one* attribute, and try
> pickling again. Repeat until pickling fails.

Was trying to avoid that but you motivated me to do so and now I found
the probem.

In a utility routine I had:
   obj.act = act
   ActionSucceded = obj.act()

Had to add:
   obj.act = None

Thanks :-)




More information about the Python-list mailing list