Part of twisted.python View Source
|Function||stringyString||Expansive string formatting for sequence types.|
|Function||greedyWrap||Given a string and a column width, return a list of lines.|
|Function||splitQuoted||Like a string split, but don't break substrings inside quotes.|
|Function||strFile||Find whether string
repr() to display their elements. This function also turns
these sequence types into strings, but uses
str() on their
Sequence elements are also displayed on seperate lines, and nested sequences have nested indentation.
Trueif this string has a newline in it.
Trueif this string ends in a newline.
Caveat: I'm use a stupid greedy word-wrapping algorythm. I won't put two spaces at the end of a sentence. I don't do full justification. And no, I've never even *heard* of hypenation.
>>> splitQuoted('the "hairy monkey" likes pie') ['the', 'hairy monkey', 'likes', 'pie']
Another one of those "someone must have a better solution for this" things. This implementation is a VERY DUMB hack done too quickly.
poccurs in a read()able object
|Returns|| (type: |