Search code examples
matrixparameterscallbacktwisted

Twisted Matrix Callback with parameters


How can I add parameters to a callback call?

i.e.

def test(x,y,z)
...
...

myobjectx.addCallback(test)

this pass myobjectx as x but how can I add the others parameters y,z?


Solution

  • The Deferred howto tells you how to do this. So does the Deferred API documentation.