Assignment Versus Equality
BartC
bc at freeuk.com
Sun Jun 26 11:56:18 EDT 2016
On 26/06/2016 16:47, Cousin Stanley wrote:
> Dennis Lee Bieber wrote:
>
>> ....
>> but I'm sure we'd have a revolt
>> if Python comparison operators looked like:
>>
>> a .eq. b
>> a .ne. b
>> a .gt. b .or. c .lt. d
>> a .le. b .and. c .ge. d
>> ....
>
> As someone who learned fortran in the mid 1960s
> and pounded a lot of fortran code in the 1970s,
> the code above seems very readable ....
I did a year of it in the 1970s. Looks funny in lower case though.
(Note, for those who don't know (old) Fortran, that spaces and tabs are
not significant. So those dots are needed, otherwise "a eq b" would be
parsed as "aeqb".)
--
Bartc
More information about the Python-list
mailing list