[Python-Dev] Wierd buffer "add" behaviour.
M.-A. Lemburg
mal@lemburg.com
Mon, 16 Oct 2000 12:14:46 +0200
Mark Hammond wrote:
> [Problems with the buffer interface]
> If you have (eg.) an "array" object and query for its buffer, life is
> good. If the array then resizes itself, your pointer is now dangling. The
> simplest solution to this is probably to simply define the lifetimes of
> these pointers as very very short ;-)
...or disable the buffer interface for mutable types altogether !
--
Marc-Andre Lemburg
______________________________________________________________________
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/