Whenever I want to add functionality to a function while still allowing
it to word as it was before my edit would be to include a few optional
variables passed to the string. something to this effect would look
like:
------------------------------------------
BEFORE:
------------------------------------------
def myfunction(a, b):
return (a + b)
------------------------------------------
AFTER:
------------------------------------------
def myfunction(a, b, op="add"):
if (op == "add"):
return (a + b)
else:
return (a - b)
------------------------------------------
--
http://mail.python.org/mailman/listinfo/python-list