This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Alexander.Patrakov
Recipients Alexander.Patrakov, docs@python
Date 2014-08-22.11:43:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
See the example at

>>> socket.getaddrinfo("", 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 argument. I thought that SOL_* is only for setsockopt(), and IPPROTO_* would be suitable. Yes, for TCP and UDP the SOL_* and IPPROTO_* constants are the same, but see e.g. which specifically points out that IPPROTO_* constants as acceptable values.
Date User Action Args
2014-08-22 11:43:28Alexander.Patrakovsetrecipients: + Alexander.Patrakov, docs@python
2014-08-22 11:43:28Alexander.Patrakovsetmessageid: <>
2014-08-22 11:43:28Alexander.Patrakovlinkissue22249 messages
2014-08-22 11:43:27Alexander.Patrakovcreate