Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'subject:not': 0.03; 'run-time': 0.05; 'subject:Python': 0.06; '(b)': 0.07; 'compiler': 0.07; 'environments': 0.07; 'failing': 0.07; 'compile-time': 0.09; 'dan': 0.09; 'filenames': 0.09; 'latter': 0.09; 'subject:Why': 0.09; 'python': 0.11; '(before': 0.16; 'behold,': 0.16; 'does,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'other,': 0.16; 'runtime.': 0.16; 'subject:)?': 0.16; 'sure.': 0.16; 'throw': 0.16; 'language': 0.16; 'wrote:': 0.18; 'wed,': 0.18; '>>>': 0.22; 'error': 0.23; '(a)': 0.24; 'errors.': 0.24; 'parse': 0.24; 'source': 0.25; 'compiled': 0.26; 'nearly': 0.26; 'header:In- Reply-To:1': 0.27; '[1]': 0.29; 'errors': 0.30; 'message- id:@mail.gmail.com': 0.30; 'usually': 0.31; '-0700,': 0.31; 'suites': 0.31; 'file': 0.32; 'running': 0.33; 'subject: (': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; "didn't": 0.36; 'error.': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'ability': 0.39; 'does': 0.39; '12,': 0.39; 'to:addr:python.org': 0.39; 'called': 0.40; 'even': 0.60; 'read': 0.60; 'dave': 0.60; 'subject:? ': 0.60; 'further': 0.61; 'effectively': 0.66; 'etc),': 0.84; "it'd": 0.84; 'subject:you': 0.87; 'angel': 0.91; '2013': 0.98 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:to :content-type; bh=13GxHYQNmb/6EvsUUmnpMuSYMnklTn1vn13Y6ohEg3U=; b=Mcx1hSfctYHuR9qZNHcJMk90uivODEDg6PBy9uE4RgwGmKuIdtnjDYclZkjnKoSG2Q Gei6Y1WZZpuWBDLBdCbLpIDemgsRgm33rN63ssFsU4Yw9+T6ZKg5UbAqDyNUE2SkY6dE VRP/yhpz1nW23omuvjT6PIuPsaafSOeuq7jxVVuCcj0zcLsGQDgRIG7C6xRzy6xwwSPD BWjV3TcMRfvtwBNz7wQfzu64wGzYyUyri+KUTI4RDSrD8X6qyBGt8hXxpXP5PQGoAc6e rFmkvkC75sAcs+5vlelBiI5EfNhmGEXKrECxj9T4g+bbJMOims108BBePdag0pG76yOz l1Xw== MIME-Version: 1.0 X-Received: by 10.52.117.16 with SMTP id ka16mr7459779vdb.43.1371003027967; Tue, 11 Jun 2013 19:10:27 -0700 (PDT) In-Reply-To: <51B7D6CC.40309@davea.name> References: <51b77f24$0$2271$426a74cc@news.free.fr> <51B7D6CC.40309@davea.name> Date: Wed, 12 Jun 2013 12:10:27 +1000 Subject: Re: Do you consider Python a 4GL? Why (not)? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371003031 news.xs4all.nl 15930 [2001:888:2000:d::a6]:60132 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:47731 On Wed, Jun 12, 2013 at 12:02 PM, Dave Angel wrote: > On 06/11/2013 03:48 PM, Laurent Pointal wrote: >> >> Dennis Lee Bieber wrote: >> >>> On Tue, 4 Jun 2013 18:17:33 -0700, Dan Stromberg >>> declaimed the following in gmane.comp.python.general: >>> >>> >> >> >>> The C compiler suites used this ability to read the error log from a >>> compile, and move to the line/column in the source file associated with >>> each error. (Before "integrated" development environments) >> >> >> This is a + for compiled environments that you effectively cannot have >> with >> Python, non-syntaxic errors found at runtime. >> > > Sure. I think they're usually called exceptions. And lo and behold, they > come with filenames and line numbers. Nearly every language has parse-time and run-time errors. Some skew it further one way than the other, but (a) there will always be run-time errors (interrupted, out of memory, etc), and (b) it'd be a stupid language[1] that didn't even *try* to parse a file before running it. The only difference is that C has a much heavier compile-time phase than Python does, so the latter has to throw TypeError for 1+[] instead of failing the compilation. ChrisA [1] I opened with "Nearly" because MS-DOS batch does seem to be this stupid.