class documentation
class LineSplitter: (source)
Object to split a string at a given delimiter or at given places.
Parameters
- delimiter : str, int, or sequence of ints, optional
- If a string, character used to delimit consecutive fields. If an integer or a sequence of integers, width(s) of each field.
- comments : str, optional
- Character used to mark the beginning of a comment. Default is '#'.
- autostrip : bool, optional
- Whether to strip each individual field. Default is True.
Method | __call__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | autostrip |
Wrapper to strip each member of the output of method . |
Instance Variable | comments |
Undocumented |
Instance Variable | delimiter |
Undocumented |
Instance Variable | encoding |
Undocumented |
Method | _delimited |
Chop off comments, strip, and split at delimiter. |
Method | _fixedwidth |
Undocumented |
Method | _variablewidth |
Undocumented |
Instance Variable | _handyman |
Undocumented |
Wrapper to strip each member of the output of method
.
Parameters
- method : function
- Function that takes a single argument and returns a sequence of strings.
Returns
- wrapped : function
- The result of wrapping
method
.wrapped
takes a single input argument and returns a list of strings that are stripped of white-space.