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


Groups > comp.lang.python > #81239

Re: Infinitely nested containers

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone01.am1.xlned.com!bcyclone01.am1.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <zachary.ware@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'that?': 0.05; '21,': 0.07; 'python3': 0.07; 'python': 0.11; 'bug': 0.12; 'itertools': 0.16; 'segfault': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'import': 0.22; 'fixed.': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'submitting': 0.31; 'depth': 0.31; 'fault': 0.31; 'fri,': 0.33; 'no,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'nov': 0.38; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'ian': 0.60
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=Idyk65kdyoaKpcpRi9aBqFkBbFrJfr0lX7/fB9P4yVw=; b=liLce7xw0T5GOfxmqDLTMu9dXAaQa5TwUzSuDAK+9D3X36n3Ru1ObpAmi1T8vhi9We pZTFuZXhIDRu0zWbjyxbbyVgMMggXsEXd9Gnt4PAWk0TKSJ/7JY5//iz7FeNhPeGKLA5 qlVQR71T8BHJk17PI/prKG9H5IYhprxhrMZ9ZjxLlBbujkErK1BmKAED7BBGWP/iRdwB vZM2vf9hqLbk+3zJ3tJ8/0G0NyOyiJjggf+Ut1rzzPgq2myNNhFu+QbZ5bwniSJzQWhn Nq3NubuxdruTeyo9SQCYHXcz3+4wjGAVr5mUpfdVOIeTeFXLEZqADCeNuG63BJYUd4pG JWXA==
X-Received by 10.60.145.201 with SMTP id sw9mr4205999oeb.5.1416598271875; Fri, 21 Nov 2014 11:31:11 -0800 (PST)
MIME-Version 1.0
Sender zachary.ware@gmail.com
In-Reply-To <CALwzidny+MbAZ-fnhZJ4C2zhEvFtkzPjVJdmzPs+KTbXG5JCHQ@mail.gmail.com>
References <931d12c0-12b3-4278-a9b9-1e2c32f138b3@googlegroups.com> <87bno16nsw.fsf@elektro.pacujo.net> <1416591555.652129.193873581.54A97BD7@webmail.messagingengine.com> <CALwzidny+MbAZ-fnhZJ4C2zhEvFtkzPjVJdmzPs+KTbXG5JCHQ@mail.gmail.com>
From Zachary Ware <zachary.ware+pylist@gmail.com>
Date Fri, 21 Nov 2014 13:30:50 -0600
X-Google-Sender-Auth RZuVbrHcAkx4E2maObvY_Icn6iE
Subject Re: Infinitely nested containers
To Python <python-list@python.org>
Content-Type text/plain; charset=UTF-8
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 <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>
Newsgroups comp.lang.python
Message-ID <mailman.16122.1416598274.18130.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1416598274 news.xs4all.nl 2920 [2001:888:2000:d::a6]:56129
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 3563
X-Received-Body-CRC 3719590474
Xref csiph.com comp.lang.python:81239

Show key headers only | View raw


On Fri, Nov 21, 2014 at 12:37 PM, Ian Kelly <ian.g.kelly@gmail.com> wrote:
> Here's a nice crash. I thought this might similarly produce a
> recursion depth error, but no, it's a seg fault!
>
> $ cat test.py
> import itertools
>
> l = []
> it = itertools.chain.from_iterable(l)
> l.append(it)
> next(it)
> $ python3 test.py
> Segmentation fault (core dumped)

Would you mind submitting a bug report for that?  Any segfault
produced by pure Python code must be fixed.

-- 
Zach

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


Thread

Infinitely nested containers Gill Shen <gillarete@gmail.com> - 2014-11-20 21:54 -0800
  Re: Infinitely nested containers Marko Rauhamaa <marko@pacujo.net> - 2014-11-21 09:00 +0200
    Re: Infinitely nested containers random832@fastmail.us - 2014-11-21 12:39 -0500
      Re: Infinitely nested containers Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-11-22 15:43 +1100
        Re: Infinitely nested containers Chris Angelico <rosuav@gmail.com> - 2014-11-22 15:50 +1100
          Re: Infinitely nested containers Rustom Mody <rustompmody@gmail.com> - 2014-11-21 21:02 -0800
            Re: Infinitely nested containers Chris Angelico <rosuav@gmail.com> - 2014-11-22 16:09 +1100
              Re: Infinitely nested containers Rustom Mody <rustompmody@gmail.com> - 2014-11-21 22:03 -0800
        Re: Infinitely nested containers Ethan Furman <ethan@stoneleaf.us> - 2014-11-22 11:50 -0800
          Re: Infinitely nested containers Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-11-23 16:59 +1100
            Re: Infinitely nested containers random832@fastmail.us - 2014-11-23 01:39 -0500
    Re: Infinitely nested containers Chris Angelico <rosuav@gmail.com> - 2014-11-22 04:47 +1100
    Re: Infinitely nested containers random832@fastmail.us - 2014-11-21 12:50 -0500
    Re: Infinitely nested containers Ian Kelly <ian.g.kelly@gmail.com> - 2014-11-21 11:37 -0700
    Re: Infinitely nested containers Zachary Ware <zachary.ware+pylist@gmail.com> - 2014-11-21 13:30 -0600
    Re: Infinitely nested containers Terry Reedy <tjreedy@udel.edu> - 2014-11-22 16:57 -0500
  Re: Infinitely nested containers Chris Angelico <rosuav@gmail.com> - 2014-11-21 18:03 +1100
  Re: Infinitely nested containers Ian Kelly <ian.g.kelly@gmail.com> - 2014-11-21 10:13 -0700

csiph-web