This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients djc, giampaolo.rodola, josiah.carlson, josiahcarlson, r.david.murray
Date 2010-04-21.16:20:30
SpamBayes Score 8.25602e-09
Marked as misclassified No
Message-id <1271866833.41.0.153065623807.issue8483@psf.upfronthosting.co.za>
In-reply-to
Content
I somehow missed the fact that B was a dispatcher subclass.  Too early in my morning, I guess.

So, I think the title of this issue should be "asyncore.dispatcher's __repr__ not being used as fallback for __str__", and your speculation looks likely to be on target, as Giampaolo says.

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.

The specific case of __str__ could be fixed by adding an __str__ to dispatcher, and that would be a lot less likely to break anything other than perhaps the odd doctest here and there (but that would mean it still shouldn't be changed in 2.6).
History
Date User Action Args
2010-04-21 16:20:33r.david.murraysetrecipients: + r.david.murray, josiahcarlson, giampaolo.rodola, josiah.carlson, djc
2010-04-21 16:20:33r.david.murraysetmessageid: <1271866833.41.0.153065623807.issue8483@psf.upfronthosting.co.za>
2010-04-21 16:20:31r.david.murraylinkissue8483 messages
2010-04-21 16:20:30r.david.murraycreate