[Python-3000] Can a Python object move in memory?
Eric Smith
eric+python-dev at trueblade.com
Wed Aug 29 19:44:13 CEST 2007
Martin v. Löwis wrote:
>> I keep Py_UNICODE* pointers into this PyUnicodeObject in my iterator
>> object, and I access these pointers on subsequent calls to my next()
>> method. Is this an error? The more I think about it the more convinced
>> I am it's an error.
>
> Because the pointer may change? There is a (silent) promise that for
> a given PyUnicodeObject, the Py_UNICODE* will never change.
Right, it's the pointer changing that I'm worried about. Should I not
bother with changing my code, then?
More information about the Python-3000
mailing list