Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #10983

Re: how to separate a list into two lists?

References <CAN1Fwxcdtt0u_TT=civMes1hA2qvfkH2YckES7B7qRE++DXzJQ@mail.gmail.com> <mailman.1986.1312651348.1164.python-list@python.org> <4e3d8634$0$5872$c3e8da3$12bcf670@news.astraweb.com>
Date 2011-08-06 19:35 +0100
Subject Re: how to separate a list into two lists?
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1990.1312655755.1164.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, Aug 6, 2011 at 7:21 PM, bud <only@fleshwound.org> wrote:
> Nice. :)  I forgot about zip, still learning Python myself.
>
> I'll have to check up on the *L - is that a reference?
> I

It expands the list into the arguments. It's the parallel to:

def func(*args):

which collapses the args into a list.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: how to separate a list into two lists? Emile van Sebille <emile@fenx.com> - 2011-08-06 10:24 -0700
  Re: how to separate a list into two lists? bud <only@fleshwound.org> - 2011-08-06 18:21 +0000
    Re: how to separate a list into two lists? Chris Angelico <rosuav@gmail.com> - 2011-08-06 19:35 +0100
    Re: how to separate a list into two lists? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-08-07 10:13 +1000

csiph-web