On Mon, Apr 7, 2014 at 1:11 PM, Benjamin Peterson <benja...@python.org>
wrote:
>
> > We can populate that struct with array-specific alternatives for
> > PySequence/PyMappingMethods and eliminate the need for dynamically
> > created array types to allocate those.
>
> Why would we want to do that?

I assume "that" means "create array types dynamically."  There are many
reasons to do that in modern array implementations.  See for example
ctypes.  A more practical reason however is that I
believe PySequence/PyMappingMethods are cloned whenever a subclass of a
sequence/mapping type is created.  For better or worse, subclassing of
numpy arrays is a popular sport these days.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to