[Python-Dev] Memoryviews should expose the underlying memory address

Stefan Krah stefan at bytereef.org
Thu Sep 20 19:58:29 CEST 2012


David Beazley <dave at dabeaz.com> wrote:
> I have recently been experimenting with the memoryview() built-in and have
> come to believe that it really needs to expose the 'buf' attribute of the
> underlying Py_buffer structure as an integer (see PEP 3118). Let me explain.

That sounds quite harmless. People who use the pointer via ctypes etc.
should know the implications. I've opened #15986 for this.
Stefan Krah


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /