Understanding Python from a PHP coder's perspective

Peter Otten __peter__ at web.de
Tue Dec 8 04:24:48 EST 2015


Chris Angelico wrote:

> On Tue, Dec 8, 2015 at 8:59 AM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
>> On Mon, Dec 7, 2015 at 2:40 PM, Chris Angelico <rosuav at gmail.com> 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.




More information about the Python-list mailing list