numpy/numpy — pull request #2702 by seberg (2012-10-30 23:22:04+00:00)
Title: BUG: Reshape of 0-sized arrays failed to work without copy

This also adds a check for order=Keeporder which is not supported. "closes Issue #2700"

I did not do this here, but I think the `PyArray_ISONESEGMENT` really does not need to check the dimensions. These arrays should always be both C- and F-contiguous (now).