Same here. This indicates a bug. In fact, this would have to be a really bad bug, because obviously e.is_integer will be False in this branch, by the if condition.