[issue15609] Format string: add more fast-path

2012-10-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5ddc7b3f2795 by Victor Stinner in branch 'default': Issue #15609: Fix refleak introduced by my last optimization http://hg.python.org/cpython/rev/5ddc7b3f2795 -- ___ Python tracker rep...@bugs.python.org

[issue15609] Format string: add more fast-path

2012-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 559a430e563c by Victor Stinner in branch 'default': Issue #15609: Optimize str%args for integer argument http://hg.python.org/cpython/rev/559a430e563c -- nosy: +python-dev ___ Python tracker

[issue15609] Format string: add more fast-path

2012-10-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15609 ___

[issue15609] Format string: add more fast-path

2012-08-09 Thread STINNER Victor
New submission from STINNER Victor: Attached patch adds tests to check that str%args and str.format(args) take all optimization opportunities for simple format strings. It takes also the fast-path when Unicode string argument when width and/or precision is set. For example, %.3s % abc now