Index: Lib/asyncore.py =================================================================== --- Lib/asyncore.py (revisione 80273) +++ Lib/asyncore.py (copia locale) @@ -396,7 +396,11 @@ # cheap inheritance, used to pass all other attribute # references to the underlying socket object. def __getattr__(self, attr): - return getattr(self.socket, attr) + try: + return getattr(self.socket, attr) + except AttributeError: + raise AttributeError("%s instance has no attribute '%s'" + %(self.__class__.__name__, attr)) # log and log_info may be overridden to provide more sophisticated # logging and warning methods. In general, log is for 'hit' logging