[issue14716] Use unicode_writer API for str.format()

2012-05-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 01581e8b50f2 by Victor Stinner in branch 'default': Backout ab500b297900: the check for integer overflow is wrong http://hg.python.org/cpython/rev/01581e8b50f2 -- ___ Python tracker

[issue14716] Use unicode_writer API for str.format()

2012-05-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7be716a47e9d by Victor Stinner in branch 'default': Close #14716: str.format() now uses the new "unicode writer" API instead of the http://hg.python.org/cpython/rev/7be716a47e9d New changeset ab500b297900 by Victor Stinner in branch 'default': Issu

[issue14716] Use unicode_writer API for str.format()

2012-05-03 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue14716] Use unicode_writer API for str.format()

2012-05-03 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forgot the benchmark script: $ cat ~/bench_format.sh ./python -m timeit \ -s 'fmt="{}:"; arg="abc"' \ 'fmt.format(arg)' ./python -m timeit \ -s 'N=200; L=3; fmt="{}"*N; args=("a"*L,)*N' \ 'fmt.format(*args)' ./python -m timeit

[issue14716] Use unicode_writer API for str.format()

2012-05-03 Thread STINNER Victor
New submission from STINNER Victor : I just added a new "unicode_writer" API for the issue #14687 (Optimize str%tuple for the PEP 393) which helps to make "str%tuple" between 25% and 30% faster. Attached patch replaces PyAccu API with the unicode_writer API for str.format(). Python 3.2: 1000