commit | 03dab786b2f504791ac46a9f9b9db82e634efd05 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Wed Oct 14 00:21:35 2015 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Wed Oct 14 00:21:35 2015 +0200 |
tree | 148e1a5f699bbdd43647370140065af1b69e78be | |
parent | b6d84832bfa1f453d3c73d6db0982aee0e6d04fe [diff] |
Rewrite PyBytes_FromFormatV() using _PyBytesWriter API * Add much more unit tests on PyBytes_FromFormatV() * Remove the first loop to compute the length of the output string * Use _PyBytesWriter to handle the bytes buffer, use overallocation * Cleanup the code to make simpler and easier to review