Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105901
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Random832 <random832@fastmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: repeat items in a list |
| Date | Mon, 28 Mar 2016 10:04:42 -0400 |
| Lines | 11 |
| Message-ID | <mailman.105.1459173886.28225.python-list@python.org> (permalink) |
| References | <8935d5dc-5e62-4fa8-8e8f-bd5b1787ee9f@googlegroups.com> <nd8ag6$6gh$1@gioia.aioe.org> <29bb9c16-eef4-4c00-9e41-ce8419405c29@googlegroups.com> <ndb50q$b8e$2@gioia.aioe.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de DGqHl/iMgkWAGbCw0nkrzAZTA1BdJaQNFVJuYa6bR0mw== |
| Return-Path | <random832@fastmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.010 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'received:internal': 0.09; 'missed': 0.15; "'a',": 0.16; "'b',": 0.16; "'c',": 0.16; "['a',": 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'subject:list': 0.26; 'about.': 0.29; 'point': 0.33; "he's": 0.33; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'turn': 0.37; 'received:66': 0.38; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.61; 'mar': 0.65; 'talking': 0.67; 'order:': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=IVWqa3HXF2bCQnLi4E+xZBuZ6hI=; b=CQsos9 rg+adkFSxyTvjgXTGMIXHk5cbUGhLkfnjw6cp0Wvp7uYawRe6gEAtyO2nKt6Z5+r TpD0n0MNJdPNFyg1EgcSIMUWjX97THxDVnWWpq8bYM9q8qnKPZSbqnxgwQtfpO2z ze5n4emkXn+uAPcu7x3A0J3pGmr6p5MPbcIVo= |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=IVWqa3HXF2bCQnL i4E+xZBuZ6hI=; b=XAfj0eycRp+Eht41XtNrbxi/qJ7gUEb78smBqu+j51vA1ba vCqGlVBPbAT1Y9LUT0Z1trLbg8gJbXPBYBI7LoX+UzmtYh/Rdi6Ea673l6CrdVxU AtrX5+Db06lKr5OND0xnYcEW8BSIALlsUNYSWj3hheRsFLOcibrTRH0TSQCw= |
| X-Sasl-Enc | 1EFel5PvkVddWMplq4XV5d9BNlIwkzZQTmLfFyqM0GI+ 1459173882 |
| X-Mailer | MessagingEngine.com Webmail Interface - ajax-eaa4717d |
| In-Reply-To | <ndb50q$b8e$2@gioia.aioe.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:105901 |
Show key headers only | View raw
On Mon, Mar 28, 2016, at 07:36, larudwer wrote: > in case you want to mainain order: > > >>>> ["a","b"]*3 > ['a', 'b', 'a', 'b', 'a', 'b'] > > is completely suffincient. I think you've completely missed the point of what order he's talking about. How do you turn ['a', 'c', 'b'] into ['a', 'a', 'a', 'c', 'c', 'c', 'b', 'b', 'b']?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
repeat items in a list beliavsky@aol.com - 2016-03-26 15:12 -0700
Re: repeat items in a list Cameron Simpson <cs@zip.com.au> - 2016-03-27 10:05 +1100
Re: repeat items in a list Erik <python@lucidity.plus.com> - 2016-03-26 23:23 +0000
Re: repeat items in a list beliavsky@aol.com - 2016-03-26 16:36 -0700
Re: repeat items in a list Rob Gaddi <rgaddi@highlandtechnology.invalid> - 2016-03-28 17:30 +0000
Re: repeat items in a list Chris Angelico <rosuav@gmail.com> - 2016-03-29 08:25 +1100
Re: repeat items in a list Antonio Caminero Garcia <tonycamgar@gmail.com> - 2016-03-29 01:43 -0700
Re: repeat items in a list Erik <python@lucidity.plus.com> - 2016-03-28 23:14 +0100
Re: repeat items in a list Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-26 23:28 +0000
Re: repeat items in a list beliavsky@aol.com - 2016-03-26 16:54 -0700
Re: repeat items in a list Paul Rubin <no.email@nospam.invalid> - 2016-03-26 22:35 -0700
Re: repeat items in a list Antonio Caminero Garcia <tonycamgar@gmail.com> - 2016-03-27 01:02 -0700
Re: repeat items in a list Antonio Caminero Garcia <tonycamgar@gmail.com> - 2016-03-27 01:30 -0700
Re: repeat items in a list Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-03-27 14:09 +0300
Re: repeat items in a list larudwer <larudwer@freenet.de> - 2016-03-27 11:52 +0200
Re: repeat items in a list Antonio Caminero Garcia <tonycamgar@gmail.com> - 2016-03-27 04:13 -0700
Re: repeat items in a list larudwer <larudwer@freenet.de> - 2016-03-28 13:36 +0200
Re: repeat items in a list Random832 <random832@fastmail.com> - 2016-03-28 10:04 -0400
Re: repeat items in a list Vito De Tullio <vito.detullio@gmail.com> - 2016-03-29 23:25 +0200
Re: repeat items in a list Michael Selik <michael.selik@gmail.com> - 2016-03-29 22:05 +0000
Re: repeat items in a list Peter Otten <__peter__@web.de> - 2016-03-30 17:52 +0200
csiph-web