statoids.py
def string2fields(string, lengths):
    """Slice string into fixed-length fields."""
    return (string[pos:pos + length].strip()
            for idx, length in enumerate(lengths)
            for pos in [sum(map(int, lengths[:idx]))])
Slice string into fixed-length fields.
Slice string into fixed-length fields.
Slice string into fixed - length fields .
def string2fields(string, lengths):
    return (string[pos:pos + length].strip()
            for idx, length in enumerate(lengths)
            for pos in [sum(map(int, lengths[:idx]))])
def string2fields ( string , lengths ) : return ( string [ pos : pos + length ] . strip ( ) for idx , length in enumerate ( lengths ) for pos in [ sum ( map ( int , lengths [ : idx ] ) ) ] )
Slice string into fixed-length fields.
Slice string into fixed - length fields .
"""Slice string into fixed-length fields."""
string
lengths