◐ Shell
clean mode source ↗

`id(a) != id(a * 1)` for `tuple`, str and bytes

Feature

CPython:

>>> a = (1, 2)
>>> id(a), id(a * 1)
(4379030656, 4379030656)

RustPython:

>>>>> a = (1, 2)
>>>>> id(a), id(a * 1)
(140352989490368, 140352989503168)

This is also covered by seq_tests.test_repeat which is now marked as unittest.expectedFailure.