- Code: Select all
# python
obj.foo((1, 2), (2, 1)) # 2 arguments, each a tuple of two ints
obj.foo(1, 2, 2, 1) # 4 arguments, each an int
Btw the funny syntax that hopscc was thinking of comes into play when your tuple has only one element:
- Code: Select all
# python
t = (1,)
Without a trailing comma, it would not be a tuple.