Message170680
> Antoine Pitrou <report@bugs.python.org> wrote:
> > I don't think we want to expose a mutable bytes object to outside code,
> > so IMO PyMemoryView_FromMemory() is preferrable.
>
> I agree, but PyMemoryView_FromMemory(PyBytes_AS_STRING(b), n, PyBUF_WRITE)
> just hides the fact that a mutable bytes object is exposed.
Except that the mutable bytes object is not exposed to any outside code,
so that weird behaviour can't be observed. |
|
Date |
User |
Action |
Args |
2012-09-18 21:51:39 | pitrou | set | recipients:
+ pitrou, jcea, amaury.forgeotdarc, vstinner, skrah, sbt |
2012-09-18 21:51:38 | pitrou | link | issue15903 messages |
2012-09-18 21:51:38 | pitrou | create | |
|