SIGN IN SIGN UP

Optimize _Py_strhex_impl() (GH-19535)

Avoid a temporary buffer to create a bytes string: use
PyBytes_FromStringAndSize() to directly allocate a bytes object.

Cleanup also the code: PEP 7 formatting, move variable definitions
closer to where they are used. Fix assertion checking "j" index.
V
Victor Stinner committed
455df9779873b8335b20292b8d0c43d66338a4db
Parent: a86b522
Committed by GitHub <noreply@github.com> on 4/15/2020, 12:05:24 PM