Ticket #5633 enhancement new
better endpoint reprs
|Reported by:||glyph||Owned by:|
(diff, github, buildbot, log)
It is often desirable to indicate where one is going to be connecting (let's say, in a log message) before one actually makes such a connection. Given that most attributes of endpoints are private (and, for these purposes, should remain so: we don't want to have IStreamClientEndpoint grow a host attribute which is just a made-up value for logging), it is annoying that the repr() and str() of these endpoints just give a memory address, rather than information about where they will be listening on or connecting to.
(It may be worthwhile to split this into one ticket per endpoint type to have nice small branches.)