[Python-Dev] PEP 298

Thomas Heller theller@python.net
15 Dec 2002 00:52:03 +0100


> > A 'locked buffer' object could be built if the PEP is implemented,
> > should it be part of the PEP? But if you expose the buffer address
> > to Python as an integer, you're living dangerous again.
> 
> Why is that? Why does it add a danger that would not be there without
> it.

Because you would pass the integer to a function expecting a pointer,
store it in a structure as a pointer, or something like that - what
else?  The danger is in the function, of course, but the integer
address probably encourages to implement those functions.

Thomas