Skip to content

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

Description

@sobolevn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions