I\'d like to split a string in a similar way to .split() (so resulting in a list) but in a more intelligent way: I\'d like it to split it into chunks that are u
.split()
>>> import textwrap >>> string = 'A string with words' >>> textwrap.wrap(string,15) ['A string with', 'words']