Rats! vararg assignments don't work

George Sakkis george.sakkis at gmail.com
Tue May 29 23:42:23 EDT 2007


On May 29, 11:33 pm, Matimus <mccre... at gmail.com> wrote:

> Your attemtp:
>
> [code]
> first, rest = arglist[0], arglist[1:]
> [/code]
>
> Is the most obvious and probably the most accepted way to do what you
> are looking for. As for adding the fucntionality you first suggested,
> it isn't likely to be implemented. The first step would be to write a
> PEP though.

The time machine did it again: http://www.python.org/dev/peps/pep-3132/.

George




More information about the Python-list mailing list