On Wed, Mar 3, 2010 at 12:15 PM, Michael Foord <span dir="ltr">&lt;<a href="mailto:fuzzyman@voidspace.org.uk">fuzzyman@voidspace.org.uk</a>&gt;</span> wrote:<br>&lt;snip&gt;<br><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Once Holger and Benjamin have worked on their ast transformation code it should be possible to add this to simpletest for better failure messages with plain asserts.<br></blockquote><div>&lt;snip&gt;<br><br>Does that mean we&#39;re going to get pretty asserts through ast transforms? As in:<br>
<br>    assert obj.froddle() == &quot;baz&quot;<br><br>gets transformed into like (or at least functionally equivalent to):<br><br>result = object.froddle()<br>expected = &quot;baz&quot;<br>assert result == expected, &quot;%s != %s&quot; % (result, expected)<br>
</div></div><br>If so, that&#39;s fantastic! The same thought crossed my mind to implement that with ast transforms, but I don&#39;t have enough ast-fu to implement it.<br><br><br clear="all">=====<br>--Ryan E. Freckleton<br>