Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ian Kelly Newsgroups: comp.lang.python Subject: Re: setrecursionlimit Date: Wed, 18 May 2016 11:38:36 -0600 Lines: 10 Message-ID: References: <573c941f$0$22141$c3e8da3$5496439d@news.astraweb.com> <573ca324$0$1604$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de CLS6fm771Be56etpLXN5PwXGwM5EtqMNsyjv1vzgDfrw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.037 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'subject:skip:s 10': 0.05; 'received:209.85.218': 0.10; 'stack': 0.13; 'wed,': 0.15; '"your': 0.16; '11:15': 0.16; '2016': 0.16; 'heap,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'am,': 0.23; 'seems': 0.23; 'header:In-Reply-To:1': 0.24; 'message- id:@mail.gmail.com': 0.27; 'function': 0.28; 'hacker': 0.29; 'call.': 0.30; "can't": 0.32; 'expensive': 0.32; "d'aprano": 0.33; 'steven': 0.33; 'received:google.com': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'received:209': 0.38; 'why': 0.39; 'application': 0.39; 'to:addr:python.org': 0.40; 'still': 0.40; 'some': 0.40; 'benefit': 0.66; "they're": 0.66; 'hour': 0.69; 'spammer': 0.84; 'to:name:python': 0.84; 'hong': 0.96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=cFzpJgTU+rhuA8Fn/HjlXze+9O5v84RdgqQRio4Sl68=; b=RlUTldstZ9Gi+NL7eafkYW9x9uwHfUHiRNXFiV9JoyaogyLjzC89m2ViYlzq3O0ccO uDiIROX93SRHXAC86Kjk1jDIv0+eq9mEpmu6npMw1G8WJMgTYsYj3I+HCksIFER5KJ7A zPc7Rdttkz51iBJOM9evwyt556YDurT4AO2B1Bmy+3a0UKAv0UwqS63oML2pv3hLSUub B1BkY2zVyatt/BTcW7DICwiv89OMHDFPFBNSBSBFWVw3Hw5tK+Ln3r1Bqqc8pKWZxP5o TT/bQ6tuNLwtdBfOXMYOsgGbKUEQ6MLjkpb1dVp+oOlmGxrIil4l+pDgqJqupbrwQ4Jg GMFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=cFzpJgTU+rhuA8Fn/HjlXze+9O5v84RdgqQRio4Sl68=; b=CjyuYUHgzPqjeUKX/DN/vhTTtDDbdC6kL1YP2LYnR+MJvaOGn75MwWxicKm6/i7MpO diTXYIBt8yw4pw6hrJbkgBT8UjuVhGT5yxCoOYGvwfjUMY4V1/nZlW9SrwHA+3jVUbdw F75jSu1e4+z9U93QlE00CCgmPg64hvl5R7tqBWY/p87wyhmDzy+YBFqwg0zH3XVdc3mR iuIOZ4ktGO+CNMHlr0dX/Xn6oq/1k9BU+vN3CvKPlc+3kXCg+cDLi4arkLoGLikd4ltP WnMYXb7LCqHp1SR+13O2MtF/YUskQ5StSnuYBqXnr29bckEMWpRFvGJyR3Zni27hoY+X cCsw== X-Gm-Message-State: AOPr4FXn6+ZlMEj60OTct7XQyKU55ftPhSLsG1v56zf0iMfHNDEnyAeTgXZB3qT6do7lx+oo6Oom0bxe6gO75g== X-Received: by 10.157.24.41 with SMTP id b38mr4800341ote.190.1463593156440; Wed, 18 May 2016 10:39:16 -0700 (PDT) In-Reply-To: <573ca324$0$1604$c3e8da3$5496439d@news.astraweb.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <573c941f$0$22141$c3e8da3$5496439d@news.astraweb.com> <573ca324$0$1604$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:108780 On Wed, May 18, 2016 at 11:15 AM, Steven D'Aprano wrote: > I don't really understand why the system can't track the current top of the > stack and bottom of the heap, and if they're going to collide, halt the > process. That would still be kinda awful, in a sudden "your application > just died" kind of way, but it would be better than "your computer is now > owned by some hacker in Hong Kong, who is now renting it by the hour to > some spammer in Texas". Seems kind of expensive for little benefit to have to make that check on every function call.