Assignment Versus Equality

Marko Rauhamaa marko at pacujo.net
Sun Jun 26 12:11:15 EDT 2016


Dennis Lee Bieber <wlfraed at ix.netcom.com>:

> 	It did... 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

Yuck, who'd ever want to look at an eyesore like that. In Python, we
will always stick to the pleasant elegance of

   __eq__
   __ne__
   __gt__
   __ge__
   __lt__
   __le__


Marko



More information about the Python-list mailing list