Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19082
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed10.multikabel.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'function,': 0.07; 'python': 0.08; 'builtin': 0.09; 'googling': 0.09; 'problem:': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'obvious.': 0.16; 'subject:function': 0.16; "i'm": 0.27; 'bit': 0.28; 'subject:?': 0.30; 'does': 0.32; 'header:User-Agent:1': 0.33; 'to:addr:python-list': 0.33; 'match': 0.33; 'header:X-Complaints- To:1': 0.34; 'but': 0.37; 'received:org': 0.37; 'should': 0.38; 'to:addr:python.org': 0.40; 'zip': 0.62; 'received:139': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Neal Becker <ndbecker2@gmail.com> |
| Subject | unzip function? |
| Date | Wed, 18 Jan 2012 09:33:34 -0500 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="ISO-8859-1" |
| Content-Transfer-Encoding | 7Bit |
| X-Gmane-NNTP-Posting-Host | 139.85.237.19 |
| User-Agent | KNode/4.7.4 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| 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.4828.1326897240.27778.python-list@python.org> (permalink) |
| Lines | 14 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1326897240 news.xs4all.nl 6848 [2001:888:2000:d::a6]:45650 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:19082 |
Show key headers only | View raw
python has builtin zip, but not unzip A bit of googling found my answer for my decorate/sort/undecorate problem: a, b = zip (*sorted ((c,d) for c,d in zip (x,y))) That zip (*sorted... does the unzipping. But it's less than intuitively obvious. I'm thinking unzip should be a builtin function, to match zip.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
unzip function? Neal Becker <ndbecker2@gmail.com> - 2012-01-18 09:33 -0500
Re: unzip function? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-01-18 15:27 +0000
Re: unzip function? Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-01-18 11:20 -0500
Re: unzip function? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-01-18 23:20 +0000
Re: unzip function? Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-01-19 10:56 -0500
RE: unzip function? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-02-03 00:53 +0000
Re: unzip function? Hrvoje Niksic <hniksic@xemacs.org> - 2012-01-18 19:01 +0100
csiph-web