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.
367
369
The object may be half-initialized or in some other way in an illegal
368
370
state. The repr method shouldn't raise an exception, or it may hide the
369
371
(probably more useful) underlying exception.