Bo Peng wrote:
def func(output=''):
  output(output=output)

Naturally, I get 'str' object is not callable. Is there a way to tell func that the first output is actually a function? (like in C++, ::output(output) )

output_alias = output

def func (output=''):
    output_alias(output=output)

Daniel
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to