October 31, 2003
Tuple arguments

I've just come across this while browsing through Python-Dev - tuple arguments. WTF?

So, you can do:

>>> def f(a, (b, c), d):
... print a, b, c, d
...
>>> f('a', ('b', 'c'), 'd')
a b c d

What I can't work out is - why?

Posted to Python by Simon Brunning at October 31, 2003 05:27 PM
Comments
Post a comment
Name:


Email Address:


URL:



Comments:


Remember info?