[Python-Dev] Py3k: Except clause syntax

Tristan Seligmann mithrandi-python-dev at mithrandi.za.net
Wed Mar 22 11:04:34 CET 2006


* Greg Ewing <greg.ewing at canterbury.ac.nz> [2006-03-21 13:20:53 +1200]:

> Gareth McCaughan wrote:
> 
> > but wouldn't if be nice if you could say
> > 
> >     def f((x0,y0) as p0, (x1,y1) as p1):
> 
> I'm not sure that it would. Currently you can look at
> a function header and get a picture of its calling
> signature, but this would clutter it up with
> implementation details of the function that aren't
> relevant to the caller.

For maximal utility, this would affect the calling signature of the
function, too: it would now have keyword arguments named p0 and p1.
-- 
mithrandi, i Ainil en-Balandor, a faer Ambar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.python.org/pipermail/python-dev/attachments/20060322/2395471a/attachment.pgp 


More information about the Python-Dev mailing list