[issue32943] confusing error message for rot13 codec

2018-03-24 Thread Xiang Zhang
Change by Xiang Zhang : -- components: +Library (Lib) resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6 ___ Python tracker ___

[issue32943] confusing error message for rot13 codec

2018-03-24 Thread miss-islington
miss-islington added the comment: New changeset 291d5f3e7195659f874fe56b0e3ed717b57597ee by Miss Islington (bot) in branch '3.7': bpo-32943: Fix confusing error message for rot13 codec (GH-5869) https://github.com/python/cpython/commit/291d5f3e7195659f874fe56b0e3ed717b57597ee -- nosy

[issue32943] confusing error message for rot13 codec

2018-03-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +5966 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32943] confusing error message for rot13 codec

2018-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset e4ce9fa89cb542dced553710b05de85202bc4715 by Xiang Zhang in branch 'master': bpo-32943: Fix confusing error message for rot13 codec (GH-5869) https://github.com/python/cpython/commit/e4ce9fa89cb542dced553710b05de85202bc4715 --

[issue32943] confusing error message for rot13 codec

2018-02-24 Thread Xiang Zhang
Change by Xiang Zhang : -- nosy: +lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue32943] confusing error message for rot13 codec

2018-02-24 Thread Xiang Zhang
Change by Xiang Zhang : -- keywords: +patch pull_requests: +5643 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue32943] confusing error message for rot13 codec

2018-02-24 Thread Xiang Zhang
New submission from Xiang Zhang : rot13 codec does a str translate operation. But it doesn't check the input type and then the error message would be quite confusing, especially for bytes: >>> codecs.encode(b'abc', 'rot13') Traceback (most recent call last): File "/usr/local/Cellar/python3/3