How to pickle bound methods

srinivasan srinivas sri_annauni at
Wed Jul 2 14:26:05 CEST 2008

I am writing client-server program. The server will send a methodname and its arguments to a client. The client has to execute the method and return back the results.

----- Original Message ----
From: Peter Otten <__peter__ at>
To: python-list at
Sent: Wednesday, 2 July, 2008 5:15:41 PM
Subject: Re: How to pickle bound methods

srinivasan srinivas wrote:

(Please don't top-post)

> It works will for instance and class methods. But it doesn't work for
> static methods. Can you tel me how to pickle static methods as well??

For static methods pickling is not so easy because these don't carry
information about the class they belong to. What are you trying to do?


      Explore your hobbies and interests. Go to

More information about the Python-list mailing list