On Mon, Apr 7, 2014 at 5:23 PM, Benjamin Peterson <benjamin@python.org> wrote:
I can understand why creating new array types is good fun, but how is
creating a new struct helpful?
We can start by reviewing the reasons for having separate PyNumber/PySequence/PyMappingMethods structures. I believe that one of the reasons is that many types need to allocate only one of the three. Numpy arrays, IIRC, allocate all three. A dedicated PyArrayMethods struct can replace some if not all of these allocations.