[Python-ideas] PEP 505: None-aware operators

Chris Angelico rosuav at gmail.com
Sun Jul 29 02:03:51 EDT 2018


On Sun, Jul 29, 2018 at 3:54 PM, Steven D'Aprano <steve at 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


More information about the Python-ideas mailing list