addressof object with id()

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sun Mar 24 05:35:50 EDT 2013


On Sun, 24 Mar 2013 06:54:08 +0000, Nobody wrote:

> More generally, an implementation *may* intern any immutable value,
> although it's not guaranteed to do so for anything except (IIRC) False,
> True and None.

I believe the same also applies to NotImplemented and Ellipsis, although 
I'm too lazy to look them up to check for sure.



-- 
Steven



More information about the Python-list mailing list