This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients amaury.forgeotdarc, belopolsky, ncoghlan, pitrou, teoliphant
Date 2008-12-11.23:36:35
SpamBayes Score 8.80918e-06
Marked as misclassified No
Message-id <1229038597.15796.9.camel@localhost>
In-reply-to <494179F2.3070507@gmail.com>
Content
> > I'm trying to be practical. If the additional shape/strides storage is
> > in Py_buffer, it can benefit anyone wanting to create a subview or doint
> > to do something else with shape and strides. If the storage is in
> > memoryview, it only benefits memoryview.
> 
> I'm not sure I follow that

Not everyone wanting to do something with a Py_buffer constructs a
memoryview, so it sounds sensible to give Py_buffer users as much power
as memoryview users.

Otherwise, let's kill Py_buffer as an independent struct, keep
memoryview as the only building block of the buffer API... something
which I totally agree with (but apparently others don't).

> it's best to think of Py_buffer's role in the protocol as
> merely a location to store a fairly large set of output variables
> describing the internal storage of the object supplying the data buffer.

And I think I've made my point that it's a broken design principle,
leading to two types instead of one.

May I remind you that:
  Simple is better than complex.
  Complex is better than complicated.
?
History
Date User Action Args
2008-12-11 23:36:37pitrousetrecipients: + pitrou, teoliphant, amaury.forgeotdarc, ncoghlan, belopolsky
2008-12-11 23:36:36pitroulinkissue4580 messages
2008-12-11 23:36:35pitroucreate