>
>
> I take that back.  I found the PEP I had been searching for.  That 
> syntax *is* allowed in Python 2: 
>
> http://www.python.org/dev/peps/pep-3113/ 
>
> sage: def f((x,y)=(1,2)): 
> ....:     print x,y 
> ....: 
> sage: f((1,2)) 
> 1 2 
>
> but it is removed in Python 3. 
>

Very interesting.   I note that virtually no Python developers were aware 
this worked, according to the PEP.  Well, then at least I don't feel quite 
so silly!  But if it's going away in Python 3, not worth the trouble in any 
case; it could just conceivably have been worth hacking, but not if Python 
in general is going the other way - if only to reduce confusion.  Thanks 
for the background.

- kcrisman

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to