mrocklin/Theano — comment on commit 7b90d0efbba1a58d4bb7c88ce76fff4bb2c63dc6
File: theano/tensor/basic.py line 4293
By mrocklin:

So you would prefer

front_list = ([allslice]*axis + [front_slice] +
[allslice]*(x.ndim - axis - 1))

to

front_list = [allslice]*axis + [front_slice] + [allslice]*(x.ndim-axis-1)