I think these should be equivalent, but the generated C I'm seeing doesn't appear to be using Py_UNICODE_ISPRINTABLE.