in reply to Re: Python 'is' command
in thread Python 'is' command

Instead of ==, I'd probably choose eq

eq can be overloaded just like ==, as I showed here, and is therefore more like Python's == instead of its is.

Replies are listed 'Best First'.
Re^3: Python 'is' command
by kcott (Archbishop) on Aug 16, 2019 at 07:02 UTC

    I'm familiar with overloading. I was just showing another way to do it which, as far as I could see, no one else had mentioned.

    — Ken