A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-August/112941.html below:

[Python-Dev] Strange message error in socket.sendto() exception

[Python-Dev] Strange message error in socket.sendto() exceptionAntoine Pitrou solipsis at pitrou.net
Sat Aug 20 13:08:11 CEST 2011
On Sat, 20 Aug 2011 07:58:13 -0300
Facundo Batista <facundobatista at gmail.com> wrote:
> 
> This is ok, I expected this. However, note what happens if I send unicode:
> 
> >>> s.sendto('data', ('localhost', 3))
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> TypeError: sendto() takes exactly 3 arguments (2 given)
> 
> An error regarding the argument quantity? what?

Here I get (3.2.2, 3.3):

>>> s.sendto('data', ('localhost', 3))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'str' does not support the buffer interface



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4