2.2.50. czekitout.convert.to_tuple_of_strs

to_tuple_of_strs(obj, obj_name)[source]

Convert input object to a tuple of strings.

If the input object is not a sequence of string-like objects, then a TypeError exception is raised with the message:

The object ``<obj_name>`` must be a sequence, where each element in the
sequence is an instance of the class `str` or `bytes`.

where <obj_name> is replaced by the contents of the string obj_name.

Parameters:
objany type

Input object.

obj_namestr

Name of the input object.

Returns:
resulttuple (str)

The object resulting from the conversion.