"!=" is bad form. Re: sorry....never mind

Jay O'Connor joconnor at cybermesa.com
Fri Mar 9 15:23:25 EST 2001


On 8 Mar 2001 16:20:53 GMT, qrczak at knm.org.pl (Marcin 'Qrczak'
Kowalczyk) wrote:

>Wed, 07 Mar 2001 22:10:27 -0800, James Logajan <JamesL at Lugoj.Com> pisze:
>
>> The operations "<", ">", "<=", ">=", "==", "<>" form a nice
>> consistent and predictable set.
>
>Except "==". Using "=" instead would be consistent.
>
>PS. Lisp, Ada, Eiffel and Haskell use "/=" for inequality. Icon uses
>"~=" for numbers and "~==" for strings. Simula uses NE for value
>inequality and "=/=" for identity inequality.  OCaml uses "=" and "<>"
>for value (in)equality, and "==" and "!=" for identity (in)equality.
>

I prefer 

	if not x == y:

myself

Take care,
Jay



More information about the Python-list mailing list