[New-bugs-announce] [issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

Jason R. Coombs report at bugs.python.org
Thu Sep 17 01:18:06 CEST 2009


New submission from Jason R. Coombs <jaraco at jaraco.com>:

It appears that somewhere between Python 2.5 and Python 2.6, some socket
constants were lost in Windows builds.

Python 2.6.2 (r262:71605, Apr 14 2009, 22:46:50) [MSC v.1500 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket; socket.IPPROTO_IPV6
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'IPPROTO_IPV6'

Confirmed this problem on 32-bit builds and Python 3.1.1 also. I suspect
the compiler upgrade influenced this behavior.

Let me know if I can help track down the issue.

----------
components: IO, Windows
messages: 92730
nosy: jaraco
severity: normal
status: open
title: socket module missing IPPROTO_IPV6, IPPROTO_IPV4
type: behavior
versions: Python 2.6, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6926>
_______________________________________


More information about the New-bugs-announce mailing list