<br><br><div class="gmail_quote">On Sun, Apr 15, 2012 at 11:42, MinRK <span dir="ltr"><<a href="mailto:benjaminrk@gmail.com">benjaminrk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br><br><div class="gmail_quote"><div class="im">On Sun, Apr 15, 2012 at 01:16, Fernando Perez <span dir="ltr"><<a href="mailto:fperez.net@gmail.com" target="_blank">fperez.net@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hey Min,<br>
<br>
this one looks odd to me, b/c the tests do pass just fine on my<br>
system, but for some reason the ar_sugar merge is causing trouble on<br>
one of the linux build bots:<br>
<br>
<a href="https://jenkins.shiningpanda.com/ipython/job/ipython-multi/PLATFORM=debian6,PYTHON=CPython-2.6/67/console" target="_blank">https://jenkins.shiningpanda.com/ipython/job/ipython-multi/PLATFORM=debian6,PYTHON=CPython-2.6/67/console</a><br>



<br>
Any idea what's going on there?  Those attributes were all added in<br>
that PR, so I'm not sure why they're not being found...<br></blockquote><div><br></div></div><div>They are properties, and I override `__getattr__()` for metadata access, so for some reason Python 2.6 handles this differently than Python ≥ 2.7.  I'll try to nail this one down.</div>

</div></blockquote><div><br></div><div>Aha!  timedelta.total_seconds() was added in Python 2.7.  I'll add a wrapper, so that I don't rely on the method.  The error messages are just super weird, due to the bizarre code path followed when there are properties and getattr override and errors.  It seems to be doing:</div>

<div><br></div><div>try:</div><div>    ar.elapsed_property()</div><div>except:</div><div>    ar.__getattr__('elapsed')</div><div><br></div><div>So the error in the property is actually resulting in the error in getattr (which should never have been called)</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div class="im">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers,<br>
<br>
f<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</blockquote></div></div><br>
</blockquote></div><br>