next alpha sequence value from var pointing to array

jdmorgan jdmorgan at unca.edu
Thu Jun 7 09:25:18 EDT 2012


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



More information about the Python-list mailing list