joferkington/numpy — comment on commit ecaf9ff9dad475500a4f0a8cd3736e03888f2d48
File: numpy/core/numeric.py line 2101
By joferkington:

I feel like there should be a better way of doing this... (Or at least a less memory-hungry one.) It's probably just my inexperience, but I can't see a better way.