New submission from Amaury Forgeot d'Arc <amaur...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue13350> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com