[issue8483] asyncore.dispatcher.__repr__() is weird

Giampaolo Rodola' report at bugs.python.org
Wed Apr 21 19:34:31 CEST 2010


Giampaolo Rodola' <g.rodola at gmail.com> added the comment:

> Unfortunately, even if forwarding everything to the socket is 
> questionable, it would probably be a really bad idea to change it, 
> since there is likely code in the field depending on this behavior.

I agree, even if it would break a code which is fundamentally *already* wrong. Maybe we can do this in 2.7 and 3.2 only?
The AttributeError message is *very* confusing.
Actually I've seen it a lot of times through the years and never figured out it had to do with that weird __getattr__ statement.

----------

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


More information about the Python-bugs-list mailing list