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 loewis
Recipients loewis, schmir, vstinner
Date 2013-01-01.22:48:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357080539.94.0.152588003062.issue16208@psf.upfronthosting.co.za>
In-reply-to
Content
It's not at all useless: it enables the application to bypass limitations in Python, i.e. process the sockaddr on its own (very much in the same way as you have to do for ioctl/fcntl).

Whether it's surprising or not depends on what you expected to happen. Python always tries to expose system interfaces unmodified, so one "should" expect something like this to happen when there is a real chance that the system returns data which Python cannot interpret.

What is puzzling is that you (reportedly) get a TypeError when you pass them to the socket creation (or connect); instead, it should tell you that the address family is not supported.
History
Date User Action Args
2013-01-01 22:48:59loewissetrecipients: + loewis, vstinner, schmir
2013-01-01 22:48:59loewissetmessageid: <1357080539.94.0.152588003062.issue16208@psf.upfronthosting.co.za>
2013-01-01 22:48:59loewislinkissue16208 messages
2013-01-01 22:48:59loewiscreate