brett at python.org
Sun Mar 11 19:51:59 CET 2007
On 3/11/07, Larry Hastings <larry at hastings.org> wrote:
> Brett Cannon wrote:
> > On 3/5/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> >> seem to have either yet, is a *-arg on the end of the
> >> unpacking list:
> >> a, b, *c = [1, 2, 3, 4, 5]
> >> giving a == 1, b == 2, c == [3, 4, 5].
> > Now I know that was discussed on python-dev once, but I don't remember why didn't end up happening.
> Surely you haven't forgotten your own recipe?
> That was also published in the Python Cookbook (2nd Edition) as recipe
> 19.4: "Unpacking a Few Items in a Multiple Assignment".
I remember writing the code, but I totally forgot I submitted it (and
it got published) as a recipe. =)
More information about the Python-ideas