[issue21171] Outdated usage str.encode('rot-13') in rot13 codec

Terry J. Reedy report at bugs.python.org
Fri Apr 11 20:38:07 CEST 2014


Terry J. Reedy added the comment:

Since rot_13 is a transcoder, not an encoder, the error message is correct, as is the fix for the function. However, since neither the module encodings.rot_13 nor the rot13 function in the module are documented, (not even in 2.7), I wonder if the function and the if __name__; clause are ancient holdovers that should be removed. In other words, I am not sure if Berker's test is currently a supported usage. I remember that there was some discussion on pydev about how much to add back but not the details.

----------
nosy: +benjamin.peterson, ezio.melotti, haypo, pitrou, terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21171>
_______________________________________


More information about the Python-bugs-list mailing list