365
365
Because repr methods are often called when something has already gone
366
366
wrong, they should be written somewhat more defensively than most code.
369
367
The object may be half-initialized or in some other way in an illegal
370
368
state. The repr method shouldn't raise an exception, or it may hide the
371
369
(probably more useful) underlying exception.