PyUnicode_GetSize

Get the length of the Unicode object.

Meta