I get a tuple instead of a string
No, you get the string "tuple"
instead of some other string, because args
is a tuple of arguments.
When you call version_control(obj, 1, 2)
, args == (obj, 1, 2)
. You want to be looking at args[0]
, which in this example is obj