STINNER Victor added the comment: My initial idea was to cache str(int) for any integer, but it may waste memory for huge numbers. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue16001> _______________________________________