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, jcea, pitrou, sbt
Date 2012-09-17.22:30:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1347921022.93.0.243323838795.issue15903@psf.upfronthosting.co.za>
In-reply-to
Content
> If either refcount is larger than the expected value of 1, then the
> data is copied rather than resized.

I think that's a useless precaution. The bytes object cannot "leak" since you are using PyMemoryView_FromMemory(), which doesn't know about the original object.

Out of curiousity, have you done any benchmarks?
History
Date User Action Args
2012-09-17 22:30:23pitrousetrecipients: + pitrou, jcea, amaury.forgeotdarc, sbt
2012-09-17 22:30:22pitrousetmessageid: <1347921022.93.0.243323838795.issue15903@psf.upfronthosting.co.za>
2012-09-17 22:30:01pitroulinkissue15903 messages
2012-09-17 22:30:00pitroucreate