mirror of
https://github.com/python/cpython.git
synced 2026-10-28 10:25:05 +08:00
Replace soft deprecated PyBytes_FromStringAndSize(NULL, size) with a simple PyMem_Malloc(). Avoid also "s = buf" to make the code easier to follow (and easier to debug). Add non-ASCII tests to test_string_literals.