"rh0dium" <(E-Mail Removed)> writes:

> Now can you reverse this process tuple2coord??
You didn't provide enough context to know who you're asking, but

here's the inverse of my coord2tuple2 function:

from string import uppercase

def tuple2coord(number):

if 1 > number or number > 26:

raise ValueError("tuple2coord expected a number between 1 and 26, got '%s'" % number)

return (" " + uppercase)[number]

<mike

--

Mike Meyer <(E-Mail Removed)>

http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.