
July 29, 2018
6:03 a.m.
On Sun, Jul 29, 2018 at 3:54 PM, Steven D'Aprano <steve@pearwood.info> wrote:
Being an implementation detail, CPython is free to change it at any time, without warning or notice, even in a bug-fix release. If CPython ever gets a memory manager that can move objects around, as they can move in Jython and IronPython, CPython will also have to change id().
To clarify: If that were to happen, CPython would change *the description of the id() function*, not the IDs returned. The IDs returned must be constant for the lifetime of the object, as that's what Python-the-language demands and guarantees. ChrisA