[issue22249] Possibly incorrect example is given for socket.getaddrinfo()

2014-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 999e72ed3fbc by Georg Brandl in branch '2.7': Closes #22249: use IPPROTO_TCP constant instead of SOL_TCP constant for getaddrinfo() proto param https://hg.python.org/cpython/rev/999e72ed3fbc -- ___

[issue22249] Possibly incorrect example is given for socket.getaddrinfo()

2014-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5611c7c20460 by Georg Brandl in branch '3.4': Closes #22249: use IPPROTO_TCP constant instead of SOL_TCP constant for getaddrinfo() proto param https://hg.python.org/cpython/rev/5611c7c20460 -- nosy: +python-dev resolution: - fixed stage:

[issue22249] Possibly incorrect example is given for socket.getaddrinfo()

2014-08-22 Thread Alexander Patrakov
New submission from Alexander Patrakov: See the example at https://docs.python.org/2/library/socket.html#socket.getaddrinfo socket.getaddrinfo(www.python.org, 80, 0, 0, socket.SOL_TCP) As I am primarily a C programmer, it is quite surprising for me to see a SOL_* being passed into the proto