Making the Zen of Python more useful

Andrew Henshaw andrew.henshaw at gtri.gatech.edu
Fri Apr 2 16:05:46 EST 2004


In article <mailman.284.1080928147.20120.python-list at python.org>, 
n3613 at klaff.org says...
>
>
>from this import s
>s.decode('rot13')
>
Thanks for the response.  Unfortunately, this still has the (generally 
desired) behavior of the text being printed to stdout.  For the less general 
case of using the text to feed some test code, I don't think that is best.  
Unfortunately, I can't think of a way to accomplish both by simply modifying 
the 'this' module (for future releases).  Adding another module would do it; 
but, I was hoping someone could suggest a better way.  

-- 
Andy




More information about the Python-list mailing list