
Sept. 24, 2008
7:13 p.m.
What I really want is for the need to be less common. What if assert recognized certain commonly used expression types and actually generated appropriate error messages?
assert foo.answer == 42 AssertionError: expected foo.answer == 42; actual: 'a suffusion of yellow'
Maybe that's too magical. :( Failing that, I wish the message could look sort of like a comment. assert cond || message Yes, I know that symbol is used for something else in other languages... -j