Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python': 0.09; 'immutable': 0.09; 'iterate': 0.09; 'lawrence': 0.09; 'mutable': 0.09; 'to:addr:comp.lang.python': 0.09; 'bug': 0.10; 'cc:addr :python-list': 0.10; 'language': 0.14; "can't.": 0.16; 'mark,': 0.16; 'simple.': 0.16; 'storing': 0.16; 'subject:sub': 0.16; 'wrote:': 0.17; '>>>': 0.18; 'tuples': 0.22; "i'd": 0.22; 'cc:2**0': 0.23; 'monday,': 0.23; 'seems': 0.23; 'cc:no real name:2**0': 0.24; 'feature': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'question': 0.27; 'besides': 0.27; 'post': 0.28; "i'm": 0.29; 'certain': 0.33; 'raising': 0.33; 'received:google.com': 0.34; 'lists.': 0.35; 'received:209.85': 0.35; 'add': 0.36; 'method': 0.36; "i'll": 0.36; 'october': 0.37; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'talk': 0.38; 'several': 0.39; 'list,': 0.39; 'subject:-': 0.40; 'your': 0.60; 'worth': 0.63; 'talking': 0.66; 'received:209.85.213.184': 0.91; 'received :mail-yx0-f184.google.com': 0.91; 'convinced': 0.93 Newsgroups: comp.lang.python Date: Tue, 2 Oct 2012 20:21:17 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=122.167.89.200; posting-account=uPFZNQoAAAAm9w7z13q1SjWNKNjztdcD References: <040cf4f0-e6de-45b1-add4-462c02fc2c7f@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 122.167.89.200 MIME-Version: 1.0 Subject: Re: Slicing iterables in sub-generators without loosing elements From: Ramchandra Apte To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 88 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1349234486 news.xs4all.nl 6865 [2001:888:2000:d::a6]:39951 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30671 On Tuesday, 2 October 2012 22:13:20 UTC+5:30, Mark Lawrence wrote: > On 02/10/2012 17:12, Ramchandra Apte wrote: > > > On Monday, 1 October 2012 13:47:50 UTC+5:30, Mark Lawrence wrote: > > >> On 01/10/2012 01:58, 88888 Dihedral wrote: > > >> > > >>> > > >> > > >>> Your question seems vague to me. If you know you are storing > > >> > > >>> only immutable tuples in a list, then the way to iterate is simple. > > >> > > >>> > > >> > > >> > > >> > > >> Does Python have a magic method that let's me use mutable tuples? I'd > > >> > > >> also like immutable lists. Is it worth raising a feature request on the > > >> > > >> bug tracker? > > >> > > >> > > >> > > >> -- > > >> > > >> Cheers. > > >> > > >> > > >> > > >> Mark Lawrence. > > > > > > Mark, you are talking to a bot. > > > > > > > What happened to freedom of speech? If I want to talk to a bot, I'll > > talk to a bot. Besides I'm not convinced it/he/she is a bot. Plus if > > you read my post carefully, add in several years experience of Python > > the language and Python the comedy, you might come to the conclusion > > that a certain amount of urine extraction was going on :) > > > > -- > > Cheers. > > > > Mark Lawrence. Never said you can't.