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


Groups > comp.lang.python > #32100

Re: can we append a list with another list in Python ?

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <d@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.034
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'subject:Python': 0.05; 'see.': 0.07; 'cc:addr:python-list': 0.10; 'concatenate': 0.16; 'relevant,': 0.16; 'wrote:': 0.17; '>>>': 0.18; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header :In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'skip:[ 10': 0.26; 'am,': 0.27; 'subject:list': 0.28; 'initial': 0.28; 'no,': 0.29; 'subject: ?': 0.30; 'list': 0.35; 'but': 0.36; 'subject:with': 0.36; 'subject:: ': 0.38; 'mean': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'dont': 0.64; 'header:Reply-To:1': 0.68; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; 'received:74.208.4.194': 0.84
Date Thu, 25 Oct 2012 05:31:11 -0400
From Dave Angel <d@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120912 Thunderbird/15.0.1
MIME-Version 1.0
To inshu chauhan <insideshoes@gmail.com>
Subject Re: can we append a list with another list in Python ?
References <CAFqGZRFUk0D_xnTZ19t6pK1dfCDKXct7iNps6MT6yjVFpF+bMw@mail.gmail.com> <901739839.1116059.1350990465261.JavaMail.root@sequans.com> <CAN1F8qXzGO-pav3zrth40JBYNxfxF74ZDaGPnGfKnHZ37x7bYg@mail.gmail.com> <CAN1F8qWWTAoGM_A=V8qKJ9Cp23XiqYyn3ZdeejzB4PzK5djrZw@mail.gmail.com> <CAN1F8qVz7EbHNG5cBz_h7U=jrCp4p42cnT8mdtPuyaCEUYf63w@mail.gmail.com> <CAFqGZRE9P7RxjfR1jj316ozN39rXyWjQzz1yGThYB-vP=mKs1Q@mail.gmail.com> <CAFqGZREsGdQC-b2mGUqRESjfA38L2LJR1b_j62AHm66xwkxpvQ@mail.gmail.com> <50890388.8030809@davea.name> <CAFqGZRG5QytqNxAfh60RNGv1V-DF8938rbDVy8Tf2S5+g4+oGA@mail.gmail.com>
In-Reply-To <CAFqGZRG5QytqNxAfh60RNGv1V-DF8938rbDVy8Tf2S5+g4+oGA@mail.gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:06OtDZKbMPStawTz4LS4rcEWJjc8w8Q44XgQEjYdQwh 4vDSt7Ppz6iqlhunP14fupwW5CUnlfaVNg757DuPjSFWbmYXMc fEtPaoVQtBamBxiKKGdlBL9ZzVOJkAtAMMd+KKW8Hmm+TCFCTg 2+U13a8cBOa37p515F5DMBz+qB3GeR/KPuWUXryZzI93Oe2hx9 ryKxI6+pT9WdJAdS8kIIR83H6RfgYmwa3Th5kr4cRjPfEyNFPn n5tJAoZVqrHocYC7lBWP03gdtSK4FOCKdZXAUOTWakuBzVW3ih jjmE+3nClwy2P/IRrTgk9qxG/JazlZm1oO2chqigQ2NjZNicw= =
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To d@davea.name
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2821.1351157493.27098.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1351157493 news.xs4all.nl 6869 [2001:888:2000:d::a6]:48308
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:32100

Show key headers only | View raw


On 10/25/2012 05:21 AM, inshu chauhan wrote:
>>
>> or if the clist initial contents were relevant, perhaps you mean
>>
>>> clist += alist, blist
>>
> 
> But not this because it will simply concatenate the  list like
> [1,2,3,4,5,6] .. I dont want this actaully...
> 
>>

No, it won't.  Try it to see.



-- 

DaveA

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


Thread

Re: can we append a list with another list in Python ? Dave Angel <d@davea.name> - 2012-10-25 05:31 -0400

csiph-web