ID EN
Collections

UserString

Python 3.11

Class that simulates a string object. The instance’s content is kept in a regular string object, which is accessible via the data attribute of UserString instances. The instance’s contents are initially set to a copy of seq. The seq argument can be any object which can be converted into a string using the built-in str() function.

Syntax

PYTHON
class collections.UserString(seq)

See Also

data UserString str() UserString str UserString