Message170627
> 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? |
|
Date |
User |
Action |
Args |
2012-09-17 22:30:23 | pitrou | set | recipients:
+ pitrou, jcea, amaury.forgeotdarc, sbt |
2012-09-17 22:30:22 | pitrou | set | messageid: <1347921022.93.0.243323838795.issue15903@psf.upfronthosting.co.za> |
2012-09-17 22:30:01 | pitrou | link | issue15903 messages |
2012-09-17 22:30:00 | pitrou | create | |
|