summaryrefslogtreecommitdiffstats
path: root/Lib/string.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-04-27 21:40:13 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-04-27 21:40:13 (GMT)
commitd0880d57b053179a8dd91f2b6fbcb5b5ddf56a1d (patch)
tree1c9262ace671960cd9353ff6fac2addf0c17abf8 /Lib/string.py
parent19b409a3410605380c9fdcb2e35511c9dff53fa6 (diff)
downloadcpython-d0880d57b053179a8dd91f2b6fbcb5b5ddf56a1d.zip
cpython-d0880d57b053179a8dd91f2b6fbcb5b5ddf56a1d.tar.gz
cpython-d0880d57b053179a8dd91f2b6fbcb5b5ddf56a1d.tar.bz2
Simplify and optimize formatlong()
* Remove _PyBytes_FormatLong(): inline it into formatlong() * the input type is always a long, so remove the code for bool * don't duplicate the string if the length does not change * Use PyUnicode_DATA() instead of _PyUnicode_AsString()
Diffstat (limited to 'Lib/string.py')
0 files changed, 0 insertions, 0 deletions