"Andy Dingley" <[EMAIL PROTECTED]> writes: > I'm trying to write rot13, but to do it in a better and more Pythonic > style than I'm currrently using. What would you reckon to the > following pretty ugly thing? How would you improve it? In > particular, I don't like the way a three-way selection is done by > nesting two binary selections. Also I dislike stating the same > algorithm twice, but can't see how to parameterise them neatly.
I'm having a hard time understanding what you're getting at. Why don't you describe the actual problem instead of the rot13 analogy. -- http://mail.python.org/mailman/listinfo/python-list