[Python-3000] Can a Python object move in memory?
"Martin v. Löwis"
martin at v.loewis.de
Wed Aug 29 19:41:08 CEST 2007
> 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.
Regards,
Martin
More information about the Python-3000
mailing list