Message10498
Jython 2.5 quietly ignores setting unsupported socket options like socket.SO_EXCLUSIVEADDRUSE (which were marked as negative to indicate they were unsupported). But in 2.7 this will raise a socket.error with errno.ENOPROTOOPT.
I believe 2.7 is correct, but we also have codebases that use the standard Python idiom of testing for the existence of a name, then attempting to use if defined. This means we should also remove these unsupported options - in particular, socket.SO_EXCLUSIVEADDRUSE is not defined on non Windows platforms on CPython as seen here when run on OS X 10.11:
$ python
Python 2.7.10 (v2.7.10:15c95b7d81dc, May 23 2015, 09:33:12)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.SO_EXCLUSIVEADDRUSE
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'SO_EXCLUSIVEADDRUSE'
This problem is seen in running the test suite for Pyro4. |
|
Date |
User |
Action |
Args |
2015-11-23 20:32:53 | zyasoft | set | recipients:
+ zyasoft |
2015-11-23 20:32:53 | zyasoft | set | messageid: <1448310773.46.0.879014098568.issue2435@psf.upfronthosting.co.za> |
2015-11-23 20:32:53 | zyasoft | link | issue2435 messages |
2015-11-23 20:32:52 | zyasoft | create | |
|