Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #65110
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <skip.montanaro@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.037 |
| X-Spam-Evidence | '*H*': 0.93; '*S*': 0.00; 'operator': 0.03; 'cc:addr :python-list': 0.11; '"python': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'subject:sub': 0.16; 'sender:addr:gmail.com': 0.17; 'cc:addr:python.org': 0.22; 'skip': 0.24; '(or': 0.24; 'question': 0.24; 'cc:2**0': 0.24; 'header:In- Reply-To:1': 0.27; 'subject:list': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'extend': 0.32; 'subject:all': 0.32; 'could': 0.34; 'problem': 0.35; 'common': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'sure': 0.39; 'flat': 0.60; 'first': 0.61; 'to:addr:gmail.com': 0.65; 'homework': 0.84; 'unaware': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=crRCIrqmGEdbmn+372Z5WjawR+lDiBws6g61LJSAd7w=; b=Y0EbD0Yxho/3IddbJfiJNRS2QMmPpg77cdeh/dfsfd/BuJ8SBTKah2o8wbhBzhCWQn nBHIP4ObqTntMmeNtXS1Noh2/DoPAfdTwPmaoFN8i6YcLqWTir1xI7hIPhnbtTYeOf/O mlaSo4DCowPQpNdxVnbBFnq28Umo4g7vOEBd0nS6EY6khhZN77tfEVxypLRqH49PUWMT gKSYdZZDjeP8K2sX63LW6vAP1J5FBRZu7VC9mJvLYml7Esuq7U7yzHbJr0Qzj53wyiYh KQ3sOZ8AygR1gmFjqMw7BK8mzLN+W0/qu/1VmdP99mH5va/kOv3Snc24jsGy+P2kwbXg OH9Q== |
| MIME-Version | 1.0 |
| X-Received | by 10.220.11.141 with SMTP id t13mr103165vct.30.1391164167275; Fri, 31 Jan 2014 02:29:27 -0800 (PST) |
| Sender | skip.montanaro@gmail.com |
| In-Reply-To | <412b4d42-acba-4609-bd6d-e4d5c32db035@googlegroups.com> |
| References | <412b4d42-acba-4609-bd6d-e4d5c32db035@googlegroups.com> |
| Date | Fri, 31 Jan 2014 04:29:27 -0600 |
| X-Google-Sender-Auth | Z0ppFUABusyDCZtK8H9P07NxdaQ |
| Subject | Re: how to iterate all sub-element in a list |
| From | Skip Montanaro <skip@pobox.com> |
| To | seaspeak@gmail.com |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | Python <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| 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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.6201.1391164607.18130.python-list@python.org> (permalink) |
| Lines | 9 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1391164607 news.xs4all.nl 2832 [2001:888:2000:d::a6]:38653 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:65110 |
Show key headers only | View raw
Google for "python flatten list." This question comes up frequently, though I'm not sure if that's because it's a common homework problem or because people are unaware of the += operator (or extend method) for lists, and so build lists-of-lists when they could just build them flat in the first place. Skip
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how to iterate all sub-element in a list seaspeak@gmail.com - 2014-01-31 02:16 -0800
Re: how to iterate all sub-element in a list Skip Montanaro <skip@pobox.com> - 2014-01-31 04:29 -0600
Re: how to iterate all sub-element in a list seaspeak@gmail.com - 2014-01-31 02:42 -0800
Re: how to iterate all sub-element in a list Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-31 14:48 +0000
Re: how to iterate all sub-element in a list seaspeak@gmail.com - 2014-01-31 08:23 -0800
Re: how to iterate all sub-element in a list Peter Otten <__peter__@web.de> - 2014-01-31 11:48 +0100
Re: how to iterate all sub-element in a list Rustom Mody <rustompmody@gmail.com> - 2014-01-31 04:12 -0800
csiph-web