String/Bytes Objects

These functions raise TypeError when expecting a string parameter and are called with a non-string parameter.

注解

These functions have been renamed to PyBytes_* in Python 3.x. Unless otherwise noted, the PyBytes functions available in 3.x are aliased to their PyString_* equivalents to help porting.