STINNER Victor added the comment: Oops, I forgot to attach the new patch: small_ints_cache_str-2.patch optimizes also str % args (copy the string when needed if the reference count is not 1).
---------- Added file: http://bugs.python.org/file27286/small_ints_cache_str-2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16001> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com