• Victor Stinner's avatar
    Simplify and optimize formatlong() · a899085d
    Victor Stinner authored
     * 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()
    a899085d
unicodeobject.c 440 KB