Obsolesence of <> (fwd)
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Sat Jun 2 03:43:45 EDT 2001
Fri, 1 Jun 2001 10:25:32 -0400, D-Man <dsh8290 at rit.edu> pisze:
> If we were talking about C/C++/Java then it makes more sense : '!' is
> the logical not operator so != means "not ,erm, assignment". Ok,
> how about !== for "not equals" <wink>?
But in Python "not" is spelled 'not', not '!'. So "not equal" should be
'not =='. Looks bad.
> You wouldn't prefer to use '/=' as Eiffel did, now would you?
Haskell uses '/=' too, but it doesn't have augmented assignments
(nor non-augmented asignments).
OCaml uses '<>' and '!=' for Python's '!=' / '<>' and 'is not'
respectively.
--
__("< Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTĘPCZA
QRCZAK
More information about the Python-list
mailing list