[New-bugs-announce] [issue11711] socketpair does not accept AF_INET family argument [Linux]

Cloudberry report at bugs.python.org
Tue Mar 29 21:19:09 CEST 2011

New submission from Cloudberry <tmail at skaugmail.net>:

System where issue was reproduced is Ubuntu 10.04 32-bit with python 2.6.5

Expected behavior for socket.socketpair as per the docstring: "The arguments are the same as for socket() except the default family is AF_UNIX if defined on the platform; otherwise, the default is AF_INET."

Executing socket.socketpair() or socket.socketpair(socket.AF_UNIX) runs fine. However, executing socket.socketpair(socket.AF_INET) throws socket.error with Errno 95 "Operation not supported".

It seems either the docstring is off suggesting non-default family can be selected, or the AF_INET option is broken.

components: Library (Lib)
files: socketpair_runme.py.bz2
messages: 132504
nosy: Cloudberry
priority: normal
severity: normal
status: open
title: socketpair does not accept AF_INET family argument [Linux]
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file21455/socketpair_runme.py.bz2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list