def lineincols (inlist,colsize):
    outstr = ''
    for item in inlist:
        if type(item) <> StringType:
            item = str(item)
        size = len(item)
        if size <= colsize:
            for i in range(colsize-size):
                outstr = outstr + ' '
            outstr = outstr + item
        else:
            outstr = outstr + item[0:colsize+1]
    return outstr
Basic indexing with an integer or a slice.
dataset/ETHPy150Open sunlightlabs/clearspending/completeness/statlib/pstat.py/lineincols--crossover with--dataset/ETHPy150Open numba/numba/numba/targets/arrayobj.py/getitem_arraynd_intp