Hi Peter,

Thanks for you feedback. I have the next_alpha function you have provided. But, am still getting the same result. The actual value I am passing in is "btl". But, as I mentioned I am getting it from an array value. Here is my actual code. I am reading a comma separated file, getting the last item and trying to get the next alpha. Thanks again.


def getNRTLid(layerName):
    lids_seen = []
    lyrs_seen = []
    last_lid = ""
    f = open("NRTLayerLID.csv", "r");
    for line in f:
        sp = line.split(',')
        lyrs_seen.append(sp[0])
        lids_seen.append(sp[1])
    f.close();
    sorted_array = sorted(lids_seen)
    sorted_array.reverse()
    print "highest lid is %s" % sorted_array[0]
    highest_lid = sorted_array[0]
    test = highest_lid.lower()
    nl = next_alpha(test)


Best,
Derek
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to