twisted.names.dns.Message should have a meaningful repr
|Reported by:||Richard Wall||Owned by:||Richard Wall|
branch-diff, diff-cov, branch-cov, buildbot
dns.Message is difficult to debug because it used the default repr.
In : from twisted.names.dns import Message In : m = Message() In : repr(m) Out: '<twisted.names.dns.Message instance at 0x2dca878>'
It would be nice to include all the fields values in the repr.
Easiest way is to inherit from FancyStrMixin
Which is what we've done with the proposed EDNSMessage class here:
Change History (14)
comment:5 Changed 3 years ago by
|Owner:||changed from hawkowl to Richard Wall|
comment:12 Changed 3 years ago by
|Branch:||branches/meaningful-message-repr-6847 → branches/meaningful-message-repr-6847-2|