You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2001-01-08.13:33:49.000>created_at=<Date2001-01-08.03:52:52.000>labels= ['extension-modules', 'invalid']
title='This line used to work: sd.connect (routerlanip, 80)'updated_at=<Date2001-01-08.13:33:49.000>user='https://bugs.python.org/b-52'
This line used to work under 1.6:
sd.connect (routerlanip, 80)
Now it returns the following error:
Traceback (most recent call last):
File "linksysdynhostsync.py", line 89, in ?
sd.connect (routerlanip, 80)
File "<string>", line 1, in connectTypeError: connect requires exactly 1 argument; 2 given
The "sd" object is opened as follows:
sd = socket.socket (socket.AF_INET, socket.SOCK_STREAM)
The variable "routerlanip" is set to an IP address e.g. 10.0.0.1
HELP
connect() was always documented as having a single 'address' argument, but the implementation was lax and allowed s.connect(host, port) instead of s.connect((host, port)). This was fixed in 2.0, just as list.append(a,b,c) is no longer allowed and must now be written as list.append((a,b,c)).
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: