PEP 308: I liked the original proposal better
Mel Wilson
mwilson at the-wire.com
Mon Feb 17 09:08:24 EST 2003
In article <mailman.1045273129.30058.python-list at python.org>,
Andrew Bennetts <andrew-pythonlist at puzzling.org> wrote:
>On Fri, Feb 14, 2003 at 08:53:22AM -0500, Mel Wilson wrote:
>> In article <mailman.1045199224.19020.python-list at python.org>,
>> Andrew Bennetts <andrew-pythonlist at puzzling.org> wrote:
>> How do you program Python without assignment statements?
>
>I still consider that to be left-to-right. I can read
> x = 4
>or even
> x = quux(foo().bar() + baz())
>from left-to-right, without having to stop in the middle and go "oh, there's
>an 'if', back-track and re-read".
[ ... ]
>I realise this is a rather fuzzy notion of left-to-right. The real point I
>was trying to make was that
> x if C else y
>is just inside-out to me. Not merely backwards, but inside-out. I don't
>like it, and I certainly don't believe that it is the Right Way.
Hmm.. well then.. arithmetic expressions haven't run left-to-right
since the days of FORTRAN:
a + b * c + d
has to run inside-out, and with the Python extensions
'oh' * 4 + 3 * 'my'
will die a horrible death unless it's run outside-in
Regards. Mel.
More information about the Python-list
mailing list