Antoine Pitrou added the comment: > What if we use int(str(value)) instead? You mean str(int(value)). Sounds good to me. ---------- nosy: +pitrou _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue18264> _______________________________________