On Mon, Apr 7, 2014, at 9:52, Alexander Belopolsky wrote: > On Sun, Apr 6, 2014 at 11:13 PM, Benjamin Peterson > <benja...@python.org>wrote: > > > > I believe this leaves only one open question, which is where exactly > > > to stick the new matmul slots into PyTypeObject. This is the kind of > > > fiddly detail that can easily be settled later if the PEP is accepted, > > > though. > > > > I don't see what it shouldn't be in PyNumberMethods. Surely, we're not > > going to get a flood of requests for more matrix operators, are we? :) > > > We may want to introduce say PyArrayMethods even if we don't introduce > more > array operators. 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? _______________________________________________ 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