Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: raise None Date: Fri, 1 Jan 2016 10:41:42 +1100 Lines: 39 Message-ID: References: <56847239$0$1590$c3e8da3$5496439d@news.astraweb.com> <5684842a$0$1596$c3e8da3$5496439d@news.astraweb.com> <5684aa1a$0$1602$c3e8da3$5496439d@news.astraweb.com> <56854b49$0$1615$c3e8da3$5496439d@news.astraweb.com> <85r3i2s776.fsf@benfinney.id.au> <85io3eryfw.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de aNihNZ7NnIsNe91AJk9c+Q0KOvsLNFz8oy3POmVvR7SA== Return-Path: 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; 'cpython': 0.05; 'enabling': 0.05; 'feature.': 0.07; 'pypy': 0.07; 'cc:addr:python- list': 0.09; 'exception,': 0.09; 'subject:None': 0.09; 'python': 0.10; 'jan': 0.11; '*less*': 0.16; '2016': 0.16; 'advocating': 0.16; 'barrier': 0.16; 'enough.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'those,': 0.16; 'wrote:': 0.16; "wouldn't": 0.16; 'debugging': 0.18; '>>>': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'lawrence': 0.22; 'am,': 0.23; 'code.': 0.23; "haven't": 0.24; 'header:In-Reply-To:1': 0.24; 'all.': 0.24; 'chris': 0.26; 'fri,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'boundary': 0.29; 'code"': 0.29; 'sure,': 0.29; "i'm": 0.30; 'code': 0.30; "i'd": 0.31; 'checked': 0.31; 'non': 0.32; 'raised': 0.33; 'surprised': 0.33; 'traceback': 0.33; 'this?': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'desirable': 0.35; 'direction': 0.35; 'possible,': 0.35; 'tasks': 0.35; 'but': 0.36; 'should': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'agree': 0.37; 'received:209.85.213': 0.37; 'suggestion': 0.37; 'difference': 0.38; 'received:209': 0.38; 'where': 0.40; 'mark': 0.40; 'term': 0.60; 'close': 0.61; 'more': 0.63; 'information': 0.63; 'between': 0.65; 'chrisa': 0.84; 'dumb': 0.84; 'to:none': 0.91; 'choose.': 0.91; 'difficult,': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=le0zZBRMUCma7NeC0EP8mwcSCOWQrrxmkk6Db8Hr8To=; b=kaDiRAc9ALI0QOlSKeL3bbBTrschC1S1JlUP/iFj1YcpX+TRp4bOHjn2APq3vYLavj Td87IfOCiRT4qLyFZFAu1Zy1i1ws3xhR04nhOzv3NsvWmqZMACNoFk9YczZ0kGo3wDxm 0lzJzbotm/SPeJLTSLNwgXnphpwDTvUw1iXTKl4PmlLSnxi6U8IDb9VMKz5mXEAlxvgI vDERYqjmfDJsM7qFrXIAK/kC7/VXljRUztrCF8UkMK+g/TfaBYwAZOVXieOy6hFbr/4E PJGxjpDfOu/+4JWGg0mQF7cK8DmxpP/uvLXS+19PzG2G2nfPiVMjeEGvr99K6Kljj2YL PQXg== X-Received: by 10.50.60.6 with SMTP id d6mr16023517igr.94.1451605302450; Thu, 31 Dec 2015 15:41:42 -0800 (PST) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:101088 On Fri, Jan 1, 2016 at 10:36 AM, Mark Lawrence wr= ote: > On 31/12/2015 23:27, Ben Finney wrote: >> >> Chris Angelico writes: >> >>> On Fri, Jan 1, 2016 at 7:18 AM, Ben Finney >>> wrote: >>>> >>>> Given how very often such decisions make my debugging tasks >>>> needlessly difficult, I'm not seeing how that's a desirable feature. >>> >>> >>> What Steven's actually advocating is removing a difference between >>> Python code and native code. >> >> >> Sure, but his proposal is to move in the direction of *less* debugging >> information. >> >> If I could have the traceback continue into the C code and tell me the >> line of C code that raised the exception, *that's* what I'd choose. >> >> The debugging information barrier of the C=E2=80=93Python boundary is a >> practical limitation, not a desirable one. I think those barriers should >> be as few as possible, and don't agree with enabling more of them. >> > > Where did C code enter into this? What do the non C implementations do? > All I see is a dumb original suggestion that should be shot down in flame= s > as I see no merit in it at all. I used the term "native code", because Jython and PyPy do the exact same thing that CPython does. (I haven't checked any others than those, but I wouldn't be surprised if they, too, had this distinction.) Short-handing to "C code" is close enough. ChrisA