[Python-de] connect() geht nicht
Martin v. Loewis
martin at v.loewis.de
Mon Jul 22 23:15:23 EDT 2002
Simon Kuhnle <moefish at web.de> writes:
> >>> s.connect("www.python.org")
> Traceback (most recent call last):
> File "<pyshell#11>", line 1, in ?
> s.connect("www.python.org")
> File "<string>", line 1, in connect
> TypeError: getsockaddrarg: AF_INET address must be tuple, not str
>
> Was soll das bedeuten ?
Du musst noch eine Portnummer angeben, dammit das connect durchgeführt
werden kann - der Hostname allein reicht nicht.
Ciao,
Martin
More information about the Python-de
mailing list