You cannot do this. Others explained this already:
- Python: How do I pass a variable by reference?
- How do I write a function with output parameters (call by reference)?
However from a design standpoint, you have at least two alternatives:
- Use return values:
def incdec(x, y, d):