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

2011-05-07 Thread Ezio Melotti
Ezio Melotti added the comment: I backported the patch to 2.7 in 7c3a20b5943a, and added tests to the 3.x branches. -- nosy: +ezio.melotti ___ Python tracker ___ ___

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

2011-05-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9222c9d747c1 by Ezio Melotti in branch '3.1': #5421: add tests. http://hg.python.org/cpython/rev/9222c9d747c1 New changeset 4b3352b49483 by Ezio Melotti in branch '3.2': #5421: merge with 3.1. http://hg.python.org/cpython/rev/4b3352b49483 New chan

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

2011-03-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you for the patch! This is now fixed in 3.x. -- nosy: +pitrou resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions: +Python 3.2, Python 3.3 ___ Python tracker

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

2011-03-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset c61b72b0650d by Antoine Pitrou in branch '3.1': Issue #5421: Fix misleading error message when one of socket.sendto()'s http://hg.python.org/cpython/rev/c61b72b0650d New changeset 2af7a6d765fd by Antoine Pitrou in branch '3.2': Issue #5421: merge f

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

2011-03-17 Thread Matt Joiner
Matt Joiner added the comment: This bug is very misleading in Py3, as the TypeError makes one think that a string is being passed rather than bytes (how else do you get a 2 argument function call wrong?). Very difficult to determine that this is not in fact the bug in a dynamically typed lang

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

2011-03-17 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: ping? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2011-02-25 Thread Matt Joiner
Changes by Matt Joiner : -- nosy: +anacrolix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2010-11-18 Thread Vetoshkin Nikita
Vetoshkin Nikita 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 "", line 1, in TypeError: 'str' does not support

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

2009-03-05 Thread Luk Knapen
Luk Knapen added the comment: File $python/lib/python3.0/logging/handlers.py Line 782 : a bytes object is required instead of a string. As a consequence, encoding shall be specified : but which one ? Is : self.socket.sendto(msg, self.address) Should look like : self.socket.sendto(bytes(m

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

2009-03-05 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Un

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

2009-03-05 Thread Manuel Hermann
New submission from Manuel Hermann : When sending unexpected data via a socket's sentdo method, a TypeError is raised with the fallowing message: "sendto() takes exactly 3 arguments (2 given)". But two arguments are sufficient. Examples for Python 2.x: import socket my_socket = socket.socket(soc