Message149431
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' |
|
Date |
User |
Action |
Args |
2011-12-14 08:56:37 | cool-RR | set | recipients:
+ cool-RR |
2011-12-14 08:56:36 | cool-RR | set | messageid: <1323852996.8.0.468969751026.issue13600@psf.upfronthosting.co.za> |
2011-12-14 08:56:36 | cool-RR | link | issue13600 messages |
2011-12-14 08:56:35 | cool-RR | create | |
|