Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #104164
| Path | csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Albert-Jan Roskam <sjeik_appie@hotmail.com> |
| Newsgroups | comp.lang.python |
| Subject | RE: reversed(zip(...)) not working as intended |
| Date | Sun, 6 Mar 2016 18:46:08 +0000 |
| Lines | 15 |
| Message-ID | <mailman.262.1457290036.20602.python-list@python.org> (permalink) |
| References | <56DC7727.1090001@mail.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="windows-1256" |
| Content-Transfer-Encoding | base64 |
| X-Trace | news.uni-berlin.de x1y1KrvELsLbQNaKvsQ/MAQ09ianorJvvQ7kek8smtSw== |
| Return-Path | <sjeik_appie@hotmail.com> |
| 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; 'raises': 0.07; '(0,': 0.09; '(1,': 0.09; '(sorry': 0.09; '3),': 0.09; '5),': 0.09; 'python': 0.10; 'subject:not': 0.11; '>>>': 0.15; '(2,': 0.16; '(3,': 0.16; '(8,': 0.16; '1),': 0.16; '2),': 0.16; '2.7.2': 0.16; '2016': 0.16; '4),': 0.16; '4.9': 0.16; '6),': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'reversed': 0.16; '>>>': 0.20; 'to:2**1': 0.21; 'header:In-Reply-To:1': 0.24; 'to:no real name:2**1': 0.27; '+0100': 0.27; 'url:mailman': 0.30; 'date:': 0.31; 'related': 0.32; 'url:python': 0.33; 'url:listinfo': 0.34; 'handle': 0.34; 'skip:& 20': 0.35; 'best,': 0.35; 'nov': 0.35; 'subject:': 0.35; 'url:org': 0.36; 'email addr:python.org': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'skip:& 10': 0.37; 'hi,': 0.38; 'from:': 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'ten': 0.60; 'strange': 0.63; 'more': 0.63; 'here:': 0.63; 'mar': 0.65; 'email name:python- list': 0.67; 'charset:windows-1256': 0.67 |
| X-TMN | [DuzFkcgGS/VRISUWDXSiXS85KIrOkm4K] |
| X-Originating-Email | [sjeik_appie@hotmail.com] |
| Importance | Normal |
| In-Reply-To | <56DC7727.1090001@mail.de> |
| X-OriginalArrivalTime | 06 Mar 2016 18:46:08.0301 (UTC) FILETIME=[723285D0:01D177D8] |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.21 |
| 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:104164 |
Show key headers only | View raw
(Sorry for top-posting) No TypeError here: Python 2.7.2 (default, Nov 2 2015, 01:07:37) [GCC 4.9 20140827 (prerelease)] on linux4 Type "help", "copyright", "credits" or "license" for more information. >>> ten = range(10) >>> reversed(zip(ten, ten)) <listreverseiterator object at 0xb6c0d310> >>> list(reversed(zip(ten, ten))) [(9, 9), (8, 8), (7, 7), (6, 6), (5, 5), (4, 4), (3, 3), (2, 2), (1, 1), (0, 0)] >>> > To: python-list@python.org > From: srkunze@mail.de > Subject: reversed(zip(...)) not working as intended > Date: Sun, 6 Mar 2016 19:29:59 +0100 > > Hi, > > what's the reason that reversed(zip(...)) raises as a TypeError? > > Would allowing reversed to handle zip and related functions lead to > strange errors? > > Best, > Sven > -- > https://mail.python.org/mailman/listinfo/python-list
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
RE: reversed(zip(...)) not working as intended Albert-Jan Roskam <sjeik_appie@hotmail.com> - 2016-03-06 18:46 +0000
csiph-web