All pastes #896743 Raw Edit

Someone

public text v1 · immutable
·published 2008-02-08 22:39 UTC
rendered paste body
----THE CODE----

class XYZ:
 def FunctionA(self,string):
  # Snip - stuff to parse STRING into PREFIX, CMD, and ARGS
  f = getattr(self,'_on_'+cmd)
  f(prefix,cmd,args)

 def _on_Stuff(self,prefix,cmd,args)
  # Snip


----THE ERROR----
 On the line with f(prefix,cmd,args)
TypeError: _on_Stuff takes 4 arguments (5 given)