• Victor Stinner's avatar
    Simplify and optimize formatlong() · d0880d57
    Victor Stinner yazdı
     * 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()
    d0880d57
bytesobject.h 4.78 KB