G'day Pythoneers,<br><br>I ran into a strange problem today: why does Python not allow default paranmeters for packed arguments in a function def?<br><br><span style="font-family: courier new,monospace;">>>> def test(a = 1, b = (2, 3)):</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">...     print a, b</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">...     </span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">>>> test()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">1 (2, 3)</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">>>> def t(a, *b = (3, 4)):</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "<input>", line 1</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    def t(a, *b = (3, 4)):</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">                ^</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">SyntaxError: invalid syntax</span><br><br>What was the rationale behind this design?<br><br>Cheers,<br><br clear="all">Ching-Yun Xavier Ho, Technical Artist<br><br>Contact Information<br>

Mobile: (+61) 04 3335 4748<br>Skype ID: SpaXe85<br>Email: <a href="mailto:contact@xavierho.com">contact@xavierho.com</a><br>Website: <a href="http://xavierho.com/">http://xavierho.com/</a><br>