That change is wrong. It is not the right way to fix the observed problem. Jeff, I think you should take it out again. I asked for a trigger case, since being the person who wrote expand_divmod, it makes sense that I fix problems in it. But I got no test case. Torbjorn