Message 257124 - Python tracker

Message257124

Author dfortunov
Recipients berker.peksag, dfortunov, paul.j3
Date 2015-12-28.18:25:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1451327110.12.0.817849008004.issue25436@psf.upfronthosting.co.za>
In-reply-to
Content
Paul,

Thanks for your comprehensive reply. I agree with everything you've said and the reason I've taken so long to reply is that I've been racking my brains to remember exactly how I came across this scenario.

I did at some point see an ArgumentError but I've forgotten the exact scenario. Since I can't see any of our internal codebase explicitly raising an ArgumentError, then I can only assume this must have just been a frustration I encountered when debugging into argparse code.

So I'll reformulate the question: Do you think it's worthwhile to make ArgumentError's repr() more useful for the purposes of interactive debugging alone?

Regards,
Dani

PS: I agree with your suggestion that you could achieve the same effect by defining a `__repr__` method for `ArgumentError`. I just thought that calling `super()` was more idiomatic.
History
Date User Action Args
2015-12-28 18:25:10dfortunovsetrecipients: + dfortunov, berker.peksag, paul.j3
2015-12-28 18:25:10dfortunovsetmessageid: <1451327110.12.0.817849008004.issue25436@psf.upfronthosting.co.za>
2015-12-28 18:25:10dfortunovlinkissue25436 messages
2015-12-28 18:25:09dfortunovcreate