rot13 in a more Pythonic style?

Steven D'Aprano steve at REMOVE.THIS.cybersource.com.au
Fri Feb 16 04:54:25 EST 2007


On Fri, 16 Feb 2007 04:53:23 +0000, Dennis Lee Bieber wrote:

> On 15 Feb 2007 11:10:53 -0800, "Andy Dingley" <dingbat at codesmiths.com>
> declaimed the following in comp.lang.python:
> 
>> 
>> Fortunately I don't think it's _quite_ that bad.
> 
> 	Possibly not, but that description of the problem would likely have
> gotten more applicable help than a debate on the merits of
> reimplementing translate().


The Original Poster did say in his first post that he knew about translate
and encode and he wasn't looking for those solutions:

[quote]
Yes, I know of .encode() and .translate().
No, I don't actually need rot13 itself, it's just a convenient
substitute example for the real job-specific task.
[end quote]

Perhaps rot13 wasn't the best choice in the world, but how was Andy to
know people would answer his post without reading it in full?

Oh wait, this is Usenet...

*wink*


-- 
Steven.




More information about the Python-list mailing list