News for hackers. Stuff that matters.
Re:Python overtakes JavaScript as most questioned language o... by Nullabillity on Saturday April 20, 2019 @05:49PM (#19709072)
It's also not reliable, since the same address can be reused if the dict is GCed. This is actually really easy to induce in Python, since it uses immediate refcounting. In my REPL (3.7.3):

    >>> a = {}
    >>> x = id(a)
    >>> del a
    >>> a = {}
    >>> y = id(a)
    >>> x == y
    True

There are no comments on this comment yet.