Theano/Theano — pull request #1511 by lamblin (2013-08-26 20:48:33+00:00)
Title: Use compat.python2x.all instead of numpy.all on generator

Otherwise, the generator evaluates to "True", because numpy.all does not
actually iterate through it.

Also add test case to check that m[0, idx_list] triggers full
advanced indexing, not "take".

This should fix gh-1499.