Sergey B Kirpichev <skirpic...@gmail.com> added the comment:
Maybe some methods from the Complex class could be moved to the Number class? I think, that something like the ring structure (probably even a commutative ring) is expected from the number classes in the Python. I.e. there should be __add__/__sub__/__mul__/__pos__/__neg__/__pow__/etc. But not __truediv__/__floordiv__. Even simpler idea: move the __eq__ method to the Number class. Then it would be impossible to instantiate a Number. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32133> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com