class documentation
A microtool to join a list of strings using property as_string
.
StringList
can also be initialized with a string.
>>> from cocopp.toolsdivers import StringList >>> StringList('ab bc') == ['ab', 'bc'] True >>> word_list = StringList(['this', 'has', 'a', 'leading', 'and', ... 'trailing', 'space']) >>> word_list.as_string ' this has a leading and trailing space '
as_string
is less typing than
>>> ' ' + ' '.join(word_list) + ' ' == word_list.as_string True
and provides tab completion.