
On Mon, 30 Aug 2021 at 23:27, Nick Parlante <nick@cs.stanford.edu> wrote:
I don't know Chris, doesn't this just show that If you construct a class with a, shall we say, "oddball" definition of ==, then using == on that class gets oddball results. And it goes without saying that we all understand that None and False and True (the dominant cases where PEP8 is forcing "is") will always have sensible definitions of ==.
If you consider numpy arrays as "oddball" and unworthy of consideration, then I guess you're correct. But PEP 8 isn't going to change because you dismiss a major Python library as irrelevant... And as everyone has already said, PEP 8 isn't *forcing* anyone to do anything. If you don't like it, ignore it. But don't try to insist everyone else has to agree with you. Paul