[issue13350] Use PyUnicode_FromFomat instead of PyUnicode_Format for fixed formats

2011-11-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Now PyUnicode_Format is only called by unicode_mod... -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue13350] Use PyUnicode_FromFomat instead of PyUnicode_Format for fixed formats

2011-11-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 386a319b1825 by Amaury Forgeot d'Arc in branch 'default': Issue #13350: Replace most usages of PyUnicode_Format by PyUnicode_FromFormat. http://hg.python.org/cpython/rev/386a319b1825 -- nosy: +python-dev ___

[issue13350] Use PyUnicode_FromFomat instead of PyUnicode_Format for fixed formats

2011-11-06 Thread Petri Lehtinen
Petri Lehtinen added the comment: This would chop unnecessary lines of code very nicely. +1 -- ___ Python tracker ___ ___ Python-bugs

[issue13350] Use PyUnicode_FromFomat instead of PyUnicode_Format for fixed formats

2011-11-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: +1 -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue13350] Use PyUnicode_FromFomat instead of PyUnicode_Format for fixed formats

2011-11-05 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc : A code simplification suggested by a comment in issue13349: Replace most usages of PyUnicode_Format (a.k.a. str.__mod__) by PyUnicode_FromFormat, which is easier to use from C: no need to build a tuple, and the format accept both C strings (%s) and Pyth