
March 5, 2012
1:40 p.m.
On Mar 02, 2012, at 01:27 PM, Mike Meyer wrote:
So the question is - why isn't dealing with this the responsibility of the test writer? Yeah, it's not quite the spirit of documentation to turn a dictionary into a sorted list in the output, but neither is littering the documentation with +LITERAL_EVAL and the like.
Yeah, it basically is. My contention, based on years of experience (though of course YMMV) is that the best way to solve this is to write better documentation. I personally don't find bare dict prints to be very useful or readable, but a nice little sort/loop/print works fine. -Barry