[Python-3000] PEP 3102
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Feb 15 03:04:55 CET 2008
Guido van Rossum wrote:
> Now can you come up with a syntax for positional-only
> arguments? So far everybody has failed at that, and there are some use
> cases where it's useful too.
def foo(*(a, b,c)):
...
i.e. catch them in a * arg which is unpacked in-place.
--
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | Carpe post meridiem! |
Christchurch, New Zealand | (I'm not a morning person.) |
greg.ewing at canterbury.ac.nz +--------------------------------------+
More information about the Python-3000
mailing list