[Python-Dev] PEP 298 - the Fixed Buffer Interface
Thomas Heller
thomas.heller@ion-tof.com
Wed, 31 Jul 2002 14:32:25 +0200
> Additional Notes/Comments
>
> Python strings, Unicode strings, mmap objects, and maybe other
> types would expose the fixed buffer interface, but the array type
> would *not*, because its memory block may be reallocated during
> its lifetime.
>
Unfortunately it's impossible to implement the fixed buffer interface
on mmap objects - the memory mapped file can be closed at any time.
This would leave the pointers unusable.
It seems this is another use case for locking - if we want it.
Thomas