Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #30645

Re: Slicing iterables in sub-generators without loosing elements

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.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; 'python': 0.09; 'immutable': 0.09; 'iterate': 0.09; 'lawrence': 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; 'language': 0.14; 'mark,': 0.16; '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; '>>>': 0.18; 'tuples': 0.22; "i'd": 0.22; 'monday,': 0.23; 'seems': 0.23; 'feature': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'question': 0.27; 'besides': 0.27; 'header:X-Complaints-To:1': 0.28; 'post': 0.28; "i'm": 0.29; 'from:addr:yahoo.co.uk': 0.32; 'certain': 0.33; 'raising': 0.33; 'to:addr:python-list': 0.33; 'lists.': 0.35; 'add': 0.36; 'received:org': 0.36; 'method': 0.36; "i'll": 0.36; 'october': 0.37; 'does': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'talk': 0.38; 'several': 0.39; 'to:addr:python.org': 0.39; 'list,': 0.39; 'subject:-': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'worth': 0.63; 'talking': 0.66; 'convinced': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Slicing iterables in sub-generators without loosing elements
Date Tue, 02 Oct 2012 17:44:45 +0100
References <mailman.1636.1348935354.27098.python-list@python.org> <040cf4f0-e6de-45b1-add4-462c02fc2c7f@googlegroups.com> <mailman.1700.1349079470.27098.python-list@python.org> <e895bf8b-514b-4dc2-a43e-50de4f9c3a9e@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-78-147-18-31.as13285.net
User-Agent Mozilla/5.0 (Windows NT 6.0; rv:15.0) Gecko/20120907 Thunderbird/15.0.1
In-Reply-To <e895bf8b-514b-4dc2-a43e-50de4f9c3a9e@googlegroups.com>
X-Antivirus avast! (VPS 121002-0, 02/10/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 <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.1732.1349196199.27098.python-list@python.org> (permalink)
Lines 44
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1349196199 news.xs4all.nl 6880 [2001:888:2000:d::a6]:60663
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:30645

Show key headers only | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Slicing iterables in sub-generators without loosing elements Thomas Bach <thbach@students.uni-mainz.de> - 2012-09-29 18:14 +0200
  Re: Slicing iterables in sub-generators without loosing elements Paul Rubin <no.email@nospam.invalid> - 2012-09-29 09:26 -0700
    Re: Slicing iterables in sub-generators without loosing elements Thomas Bach <thbach@students.uni-mainz.de> - 2012-09-29 18:44 +0200
  Re: Slicing iterables in sub-generators without loosing elements 88888 Dihedral <dihedral88888@googlemail.com> - 2012-09-30 17:58 -0700
    Re: Slicing iterables in sub-generators without loosing elements Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-10-01 09:19 +0100
      Re: Slicing iterables in sub-generators without loosing elements Ramchandra Apte <maniandram01@gmail.com> - 2012-10-02 09:12 -0700
        Re: Slicing iterables in sub-generators without loosing elements Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-10-02 17:44 +0100
          Re: Slicing iterables in sub-generators without loosing elements Ramchandra Apte <maniandram01@gmail.com> - 2012-10-02 20:21 -0700
          Re: Slicing iterables in sub-generators without loosing elements Ramchandra Apte <maniandram01@gmail.com> - 2012-10-02 20:21 -0700
        Re: Slicing iterables in sub-generators without loosing elements Chris Angelico <rosuav@gmail.com> - 2012-10-03 03:58 +1000
          Re: Slicing iterables in sub-generators without loosing elements Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-03 00:57 +0000
            Re: Slicing iterables in sub-generators without loosing elements 88888 Dihedral <dihedral88888@googlemail.com> - 2012-10-02 18:11 -0700
              Re: Slicing iterables in sub-generators without loosing elements Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-03 01:24 +0000
                Re: Slicing iterables in sub-generators without loosing elements 88888 Dihedral <dihedral88888@googlemail.com> - 2012-10-02 18:42 -0700
        Re: Slicing iterables in sub-generators without loosing elements Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-10-02 19:35 +0100
        Re: Slicing iterables in sub-generators without loosing elements Terry Reedy <tjreedy@udel.edu> - 2012-10-02 14:59 -0400
      Re: Slicing iterables in sub-generators without loosing elements Ramchandra Apte <maniandram01@gmail.com> - 2012-10-02 09:12 -0700
      Re: Slicing iterables in sub-generators without loosing elements 88888 Dihedral <dihedral88888@googlemail.com> - 2012-10-02 13:54 -0700
      Re: Slicing iterables in sub-generators without loosing elements 88888 Dihedral <dihedral88888@googlemail.com> - 2012-10-02 13:54 -0700
  Re: Slicing iterables in sub-generators without loosing elements 88888 Dihedral <dihedral88888@googlemail.com> - 2012-09-30 17:58 -0700

csiph-web