Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
divmod() should be implemented via __divmod__ and __rdivmod__. And they should be looked up on the type, not instance. There is no easy way to express it in Python accurately. This would make the example too complex. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38237> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com