Vetoshkin Nikita <nikita.vetosh...@gmail.com> added the comment: Here's a patch, which performs argument checking in a way to be able to provide better error message like that:
>>> my_socket.sendto("No Umlaut", ("localhost", 514)) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'str' does not support the buffer interface ---------- keywords: +patch nosy: +nvetoshkin Added file: http://bugs.python.org/file19635/issue5421.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5421> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com