Jan-30-2021, 08:17 AM
(This post was last modified: Jan-30-2021, 08:18 AM by Gribouillis.)
The answer is simple, the method
socket.connect.connect()
takes a single argument, the address where the socket should connect. For a socket of the AF_INET family type (the default), the address is a tuple with two elements (host, port)
. So you are not using double parentheses, you are passing a single argument which is a tuple.