[issue5421] Irritating error message by socket's sendto method

Vetoshkin Nikita report at bugs.python.org
Thu Nov 18 23:24:42 CET 2010


Vetoshkin Nikita <nikita.vetoshkin at 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 <report at bugs.python.org>
<http://bugs.python.org/issue5421>
_______________________________________


More information about the Python-bugs-list mailing list