diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-05-02 00:29:36 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-05-02 00:29:36 +0200 |
commit | b5c3ea3af35e1b55079ac8018e52935f3a43d032 (patch) | |
tree | a394313fa70bab6f985f03b9d8216a2e57a7284d /Python/Python-ast.c | |
parent | cc1c146c7a42e4b10b377f448d841573d74ae442 (diff) | |
download | cpython-git-b5c3ea3af35e1b55079ac8018e52935f3a43d032.tar.gz |
Issue #14687: Optimize str%args
* formatfloat() uses unicode_fromascii() instead of PyUnicode_DecodeASCII()
to not have to check characters, we know that it is really ASCII
* Use PyUnicode_FromOrdinal() instead of _PyUnicode_FromUCS4() to format
a character: if avoids a call to ucs4lib_find_max_char() to compute
the maximum character (whereas we already know it, it is just the character
itself)
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions