jaberg/Theano — comment on commit 2290d24ef5bba180108696be7d83c7db92c534a1
File:  line 0
By jaberg:

I appreciate that the equality check should be at least as strong as comparing .num. However, I was thinking that in the future we might allow for record arrays and other things that dtype supports. Numpy presumably added them because they were useful, after all. The .num attribute alone doesn't suffice for those kinds of comparisons. I agree that this is a future consideration though, for now .num is sufficient for what our code generators support.