Understanding Python from a PHP coder's perspective

Chris Angelico rosuav at gmail.com
Tue Dec 8 04:40:31 EST 2015


On Tue, Dec 8, 2015 at 8:24 PM, Peter Otten <__peter__ at web.de> wrote:
> 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.

Worst I've ever done there is create shim redirects. I refuse to have
my Python site advertise PHP.

https://github.com/Rosuav/Flask1/blob/master/1.py#L82

ChrisA



More information about the Python-list mailing list