Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Peter Otten <__peter__@web.de> Newsgroups: comp.lang.python Subject: Re: Understanding Python from a PHP coder's perspective Date: Tue, 08 Dec 2015 10:24:48 +0100 Organization: None Lines: 18 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: news.uni-berlin.de EywcdiF6gbeGVw0mcuBI2QRpPfyFI5yPSPW3pz70oltw== 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; 'subject:Python': 0.05; 'used.': 0.05; 'suffix': 0.07; 'ugly': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; '2:40': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'received:t-ipconnect.de': 0.16; 'subject:perspective': 0.16; 'wrote:': 0.16; ';-)': 0.18; 'language': 0.19; '>>>': 0.20; '2015': 0.20; 'level,': 0.22; 'am,': 0.23; 'defined': 0.23; 'dec': 0.23; 'implemented': 0.24; 'mon,': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints- To:1': 0.26; 'chris': 0.26; 'defining': 0.27; 'reflect': 0.27; 'function': 0.28; 'does,': 0.29; 'summary': 0.29; 'common': 0.33; 'combination': 0.33; 'tue,': 0.34; 'file': 0.34; 'but': 0.36; 'instead': 0.36; 'urls': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; "won't": 0.38; 'or,': 0.38; 'end': 0.39; 'why': 0.39; 'subject:from': 0.39; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'your': 0.60; 'industry.': 0.63; "they're": 0.66; 'marketing': 0.72; 'urls,': 0.91; 'poorly': 0.93; 'you...': 0.97 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: p57bd9067.dip0.t-ipconnect.de User-Agent: KNode/4.13.3 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:100141 Chris Angelico wrote: > 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... Or ".php". Leaking the suffix is both ugly and excellent marketing -- a combination that is also common in the fashion industry.