Message6660

Author irmen
Recipients irmen
Date 2011-10-07.23:51:06
SpamBayes Score 1.544287e-11
Marked as misclassified No
Message-id <1318031467.5.0.819413588872.issue1803@psf.upfronthosting.co.za>
In-reply-to
Content
_tcpsocket doesn't have 'family' attribute so accessing it on socket objects crashes with AttributeError

Reproduce session:

[E:\projects\Pyro4_ipv6\tests]java -jar \jython25\jython.jar
Jython 2.5.2 (Release_2_5_2:7206, Mar 2 2011, 23:12:06)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_26
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> s=socket.socket()
>>> s.family
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "E:\jython25\Lib\socket.py", line 1268, in <lambda>
    family = property(lambda self: self._sock.family, doc="the socket family")
AttributeError: _tcpsocket instance has no attribute 'family'
>>>
History
Date User Action Args
2011-10-07 23:51:07irmensetrecipients: + irmen
2011-10-07 23:51:07irmensetmessageid: <1318031467.5.0.819413588872.issue1803@psf.upfronthosting.co.za>
2011-10-07 23:51:07irmenlinkissue1803 messages
2011-10-07 23:51:06irmencreate