string

  • full name: tenpy.tools.string

  • parent module: tenpy.tools

  • type: module

Functions

format_like_list(it)

Format elements of an iterable as if it were a plain list.

is_non_string_iterable(x)

Check if x is a non-string iterable, (e.g., list, tuple, dictionary, np.ndarray)

join_as_many_as_possible(msgs, separator[, ...])

Like separator.join(msgs) but truncated if the result is too long.

to_mathematica_lists(a)

convert nested a to string readable by mathematica using curly brackets '{...}'.

vert_join(strlist[, valign, halign, delim])

Join multiline strings vertically such that they appear next to each other.

Module description

Tools for handling strings.