Hristo Venev added the comment: One last thing: type(a%b) is A, type(b%a) is int. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue26026> _______________________________________