On 9/29/05, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > "fraca7" wrote: > > > print ''.join(map(lambda x: chr((((ord(x) - ord('a')) + 13) % 26) + > > ord('a')), 'yvfc')) > > that's spelled > > print "yvfc".decode("rot-13") > > or, if you prefer, > > print "yvfc".encode("rot-13") > > , in contemporary python.
I'm not sure that being more comprehensible is considered a virtue in this thread, /F. ;-) -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.python.org/mailman/listinfo/python-list