Terry Reedy wrote: > "A rich comparison method may return the singleton NotImplemented if it > does not implement the operation for a given pair of arguments. By > convention, False and True are returned for a successful comparison. > However, these methods can return any value," That's to give the other operand a chance to handle the operation. If they both return NotImplemented, then a TypeError is raised by the interpreter. -- Greg
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4