Sujet : Re: how to discover what values produced an exception?
De : rosuav (at) *nospam* gmail.com (Chris Angelico)
Groupes : comp.lang.pythonDate : 06. May 2024, 18:46:09
Autres entêtes
Message-ID : <mailman.10.1715017584.3326.python-list@python.org>
References : 1 2 3 4 5
On Tue, 7 May 2024 at 03:38, Alan Bawden via Python-list
<
python-list@python.org> wrote:
A good error message shouldn't withhold any information that can
_easily_ be included. Debugging is more art than science, so there is
no real way to predict what information might prove useful in solving
the crime. I emphasized "easily" because of course you have to draw the
line somewhere.
Emphasis on "easily" is correct here. How easy is it to report the
value of something that could be arbitrarily large?
ChrisA