News for hackers. Stuff that matters.
Re:Migrating to Python 3 with pleasure by glandium on Sunday February 04, 2018 @10:29PM (#16306404)
> Python allows the overriding of just about every operator.

Except the boolean operators (and, or, not). For instance __and__ overrides the binary and (&), not the boolean and.

Re:Migrating to Python 3 with pleasure by Cyphase on Monday February 05, 2018 @04:42PM (#16312492)
That's True, but you _can_ override __bool__.[1]

[1] https://docs.python.org/3/reference/datamodel.html#object.__...