New submission from Yongzhi Pan: In the 2.7 branch, the exception message of str.join is missing when the argument is non-sequence:
>>> ' '.join(None) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError I fix this with a patch. After this: >>> ' '.join(None) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: can only join an iterable I also add test to this case. Can the test also be added to 3.x branches? ---------- components: ctypes files: str_join_exception_message.diff keywords: patch messages: 226675 nosy: fossilet priority: normal severity: normal status: open title: Empty exception message of str.join type: enhancement versions: Python 2.7 Added file: http://bugs.python.org/file36589/str_join_exception_message.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22379> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com