def readList(infile,
             column=0,
             map_function=str,
             map_category={},
             with_title=False):

    m = []
    title = None
    for l in infile:
        if l[0] == "#":
            continue
        if with_title and not title:
            title = l[:-1].split("\t")[column]
            continue

        try:
            d = map_function(l[:-1].split("\t")[column])
        except ValueError:
            continue

        if map_category:
            d = map_category[d]
        m.append(d)

    return m
Test _Put().
dataset/ETHPy150Open CGATOxford/cgat/CGAT/IOTools.py/readList--crossover with--dataset/ETHPy150Open google/simian/src/tests/simian/auth/gaeserver_test.py/Auth1ServerDatastoreMemcacheSessionTest.testPut