How to pickle bound methods

Peter Otten __peter__ at web.de
Thu Jul 3 04:44:54 EDT 2008


srinivasan srinivas wrote:

Please don't top-post.

> No. It does not work.

That's what I said. Try

class A(object):
    @staticmethod
    def alpha():
        print "Hello"

alpha = A.alpha

Peter








More information about the Python-list mailing list