[issue13350] Use PyUnicode_FromFomat instead of PyUnicode_Format for fixed formats
Amaury Forgeot d'Arc
report at bugs.python.org
Sat Nov 5 22:30:35 CET 2011
New submission from Amaury Forgeot d'Arc <amauryfa at gmail.com>:
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 Python strings (%S or %R)
----------
files: FromFormat.diff
keywords: patch
messages: 147112
nosy: amaury.forgeotdarc, petri.lehtinen
priority: normal
severity: normal
status: open
title: Use PyUnicode_FromFomat instead of PyUnicode_Format for fixed formats
versions: Python 3.3
Added file: http://bugs.python.org/file23614/FromFormat.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13350>
_______________________________________
More information about the Python-bugs-list
mailing list