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 skrah
Recipients mpb, pitrou, skrah
Date 2013-11-14.12:02:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1384430543.36.0.524038343533.issue19577@psf.upfronthosting.co.za>
In-reply-to
Content
-1 on complicating the code further. It would be possible to pass
an existing memoryview to mbuf_add_view(). That would save the line

   mv = memory_alloc().

But:

  a) You need to check that ndim is correct (shape, strides and
     suboffsets are allocated via the struct hack).

  b) You need to check for existing exports of the memoryview.


  c) ... probably other things that would surface on closer examination.
History
Date User Action Args
2013-11-14 12:02:23skrahsetrecipients: + skrah, pitrou, mpb
2013-11-14 12:02:23skrahsetmessageid: <1384430543.36.0.524038343533.issue19577@psf.upfronthosting.co.za>
2013-11-14 12:02:23skrahlinkissue19577 messages
2013-11-14 12:02:23skrahcreate