gh-111089: Use PyUnicode_AsUTF8() in Argument Clinic (#111585)
Replace PyUnicode_AsUTF8AndSize() with PyUnicode_AsUTF8() to remove the explicit check for embedded null characters. The change avoids to have to include explicitly <string.h> to get the strlen() function when using a recent version of the limited C API.
V
Victor Stinner committed
d9b606b3d04fc56fb0bcc479d7d6c14562edb5e2
Parent: 97b3cd3
Committed by GitHub <noreply@github.com>
on 11/1/2023, 3:34:42 PM