Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python': 0.09; 'immutable': 0.09; 'iterate': 0.09; 'mutable': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'bug': 0.10; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'simple.': 0.16; 'storing': 0.16; 'subject:sub': 0.16; 'wrote:': 0.17; 'tuples': 0.22; "i'd": 0.22; 'seems': 0.23; 'feature': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'question': 0.27; 'header:X-Complaints-To:1': 0.28; 'from:addr:yahoo.co.uk': 0.32; 'raising': 0.33; 'to:addr:python- list': 0.33; 'lists.': 0.35; 'received:org': 0.36; 'method': 0.36; 'does': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'to:addr:python.org': 0.39; 'list,': 0.39; 'subject:-': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'worth': 0.63; 'received:2': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Slicing iterables in sub-generators without loosing elements Date: Mon, 01 Oct 2012 09:19:37 +0100 References: <040cf4f0-e6de-45b1-add4-462c02fc2c7f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-2-98-201-251.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 In-Reply-To: <040cf4f0-e6de-45b1-add4-462c02fc2c7f@googlegroups.com> X-Antivirus: avast! (VPS 120930-1, 30/09/2012), Outbound message X-Antivirus-Status: Clean 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: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1349079470 news.xs4all.nl 6912 [2001:888:2000:d::a6]:51707 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30599 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.