2 ms·
You can already do: def show((a, b, c)): print 'a = %s, b = %s, c = %s' % (a, b, c) And there's no way to pass a, b, and c other than positionally. You
by twic 8y ago
You can already do:
def show((a, b, c)):
print 'a = %s, b = %s, c = %s' % (a, b, c)
And there's no way to pass a, b, and c other than positionally. You can write:
show((1, 2, 3))
But not:
show((a=1, b=2, c=3))
- rbonvall 8y agoThat feature was removed in python 3: $ python2 >>> def f((a, b)): ... return a + b ...· >>> f((1, 2)) 3 $ python3 >>> def f((a, b)): File "<stdin>", line 1 def f((a, b)): ^ SyntaxError: invalid syntax