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

I'd tend towards something like

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