News for hackers. Stuff that matters.
Re:Python strings are immutable, but only sometimes by heavyset_go on Monday February 15, 2021 @09:28PM (#26150260)
It isn't just integers.

    In [2]: (1, 2) is (1, 2)
    Out[2]: True
 
    In [3]: a, b = (1, 2), (1, 2)
    In [4]: a is b
    Out[4]: True

    In [7]: a = (1, 2)                                                                                                                                                                           
    In [8]: b = (1, 2)
    In [9]: a is b
    Out[9]: False

There are no comments on this comment yet.