ID EN
Array

fromunicode

Python 3.11

Extends this array with data from the given Unicode string. The array must have type code 'u'; otherwise a ValueError is raised. Use array.frombytes(unicodestring.encode(enc)) to append Unicode data to an array of some other type.

Syntax

PYTHON
fromunicode(s)

See Also

ValueError