Message103857
I think the problem relies in here:
# cheap inheritance, used to pass all other attribute
# references to the underlying socket object.
def __getattr__(self, attr):
return getattr(self.socket, attr)
I wonder why this has been added in the first place.
It also causes confusing error messages when accessing undefined attributes:
>>> class B(asyncore.dispatcher):
... def __init__(self, *args):
... asyncore.dispatcher.__init__(self, *args)
...
>>> b = B()
>>> b.blabla
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/asyncore.py", line 394, in __getattr__
return getattr(self.socket, attr)
AttributeError: '_socketobject' object has no attribute 'blabla'
>>> |
|
Date |
User |
Action |
Args |
2010-04-21 15:31:05 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola, josiahcarlson, josiah.carlson, djc, r.david.murray |
2010-04-21 15:31:05 | giampaolo.rodola | set | messageid: <1271863865.13.0.723107194419.issue8483@psf.upfronthosting.co.za> |
2010-04-21 15:31:03 | giampaolo.rodola | link | issue8483 messages |
2010-04-21 15:31:03 | giampaolo.rodola | create | |
|