homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cool-RR
Recipients cool-RR
Date 2011年12月14日.08:56:35
SpamBayes Score 3.5330737e-07
Marked as misclassified No
Message-id <1323852996.8.0.468969751026.issue13600@psf.upfronthosting.co.za>
In-reply-to
Content
The `rot_13` codec is supposed to work like this, no?
>>> 'qwerty'.encode('utf-8')
b'qwerty'
>>> 'qwerty'.encode('rot_13')
Traceback (most recent call last):
 File "<pyshell#1>", line 1, in <module>
 'qwerty'.encode('rot_13')
TypeError: encoder did not return a bytes object (type=str)
>>> b'qwerty'.decode('utf-8')
'qwerty'
>>> b'qwerty'.decode('rot_13')
Traceback (most recent call last):
 File "<pyshell#2>", line 1, in <module>
 b'qwerty'.decode('rot_13')
 File "C:\Python32\lib\encodings\rot_13.py", line 19, in decode
 return (input.translate(rot13_map), len(input))
AttributeError: 'memoryview' object has no attribute 'translate'
History
Date User Action Args
2011年12月14日 08:56:37cool-RRsetrecipients: + cool-RR
2011年12月14日 08:56:36cool-RRsetmessageid: <1323852996.8.0.468969751026.issue13600@psf.upfronthosting.co.za>
2011年12月14日 08:56:36cool-RRlinkissue13600 messages
2011年12月14日 08:56:35cool-RRcreate

AltStyle によって変換されたページ (->オリジナル) /