Re: Class methods as callbacks/errbacks

Phil Mayers <[email protected]>
Newsgroups gmane.comp.python.twisted.web
Message-ID <[email protected]>
> Is there an alternative and/or cleaner solution to specify a class
> method as a callback or errback?

Just pass the instance method directly to addCallback:

d.addCallback(someclass.lost_conn)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.