Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Understanding Python from a PHP coder's perspective Date: Tue, 8 Dec 2015 09:03:04 +1100 Lines: 14 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de LuONrQ8F2+t7Ur0cMD7Swwq4KR0CP7Ovn2e3SvpIQFhw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.05; 'used.': 0.05; 'cc:addr:python-list': 0.09; 'python': 0.10; '2:40': 0.16; 'cc:name:python': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:perspective': 0.16; 'wrote:': 0.16; ';-)': 0.18; 'language': 0.19; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'level,': 0.22; 'am,': 0.23; 'defined': 0.23; 'dec': 0.23; 'implemented': 0.24; 'header:In- Reply-To:1': 0.24; 'mon,': 0.24; 'chris': 0.26; 'message- id:@mail.gmail.com': 0.27; 'defining': 0.27; 'reflect': 0.27; 'function': 0.28; 'does,': 0.29; 'summary': 0.29; 'tue,': 0.34; 'file': 0.34; 'received:google.com': 0.35; 'but': 0.36; 'instead': 0.36; 'received:209.85': 0.36; 'urls': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; "won't": 0.38; 'received:209': 0.38; 'or,': 0.38; 'end': 0.39; 'why': 0.39; 'subject:from': 0.39; 'your': 0.60; "they're": 0.66; 'chrisa': 0.84; 'to:none': 0.91; 'urls,': 0.91; 'poorly': 0.93; 'you...': 0.97 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; bh=HNPM50K+klFppuTfhCh4EnEJBPK+qbRMavHSI6w/i60=; b=UfYBqmUO/s2IOq3Zs93ci86Nn5DM6FKO2zxoSklv8Psk1bhECPnoVku79+K2WtB48i fxMNq2w40gjZ+hTxbTkyqLZc20B9hN7UHk5dFn8ZzDRT4zd5WlspRocyNePp3vfqdC5B rJmAqR1iTuXnAGu3+3M3PFdXLuYhlNv7E6kvr7uNG9VReGKyw7iF9FrbziEhUochOGqL SXN1/KL5b6ZsiF/G/AhTuIlyLRVr2oshJu0O1o144xfmnDrVN91S7PuDSx4yWLATI/qR 2TVfQdaNF1z64ZyjDryywyQsFnlBWM0yJYNohRmqOfeAKlINdtCKYDajqCyIrzRsdswf SKRA== X-Received: by 10.50.98.100 with SMTP id eh4mr679791igb.13.1449525784892; Mon, 07 Dec 2015 14:03:04 -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:100115 On Tue, Dec 8, 2015 at 8:59 AM, Ian Kelly wrote: > On Mon, Dec 7, 2015 at 2:40 PM, Chris Angelico wrote: >> So that's a quick potted summary of why the URLs don't reflect the >> language used. Python is event-driven, but instead of defining events >> at the file level, the way PHP does, they're defined at the function >> level. Of course, if you *want* to put ".py" on the end of all your >> URLs, Python won't stop you... :) > > Or, if it's a poorly implemented site, ".rb". ;-) Well hey. Python won't stop me from adding ".rb" to the ends of my URLs either... ChrisA