how to compare objects by memory address forcedly.

If you really have to compare the address it’d better be significant for you. In general (in particular for immutable objects) this means you would already have that address (e.g. if you are interfacing with julia in C) and comparing the address is then trivial. Otherwise, the question is invalid (i.e. there’s no instance where you don’t already have the address and have to force the address of a possibly immutable object).

Nop. That’s NOT what is is in python either.

Quoting python doc:

The ‘ is ’ operator compares the identity of two objects; the id() function returns an integer representing its identity.

It’s only cpython’s implementation detail that:

id(x) is the memory address where x is stored.

In particular, pypy implements an id and is very similar to julia’s and AFAICT this is only a difference in the implementation level and is not part of the python semantics.