how to compare objects by memory address forcedly.

thautwarm
Mon, 13 Aug 2018 03:14:04 +0000
General Usage

Just like is in Python, there’re some use cases requiring comparison by memory address, no matter whether the object is mutable or not.

=== doesn’t satisfy the demand for it compares immutable data in bit level.

It’s equivalent to getting the memory address of an object.

6 posts - 3 participants

Read full topic