3 ms·
Are you saying `o` is passed by value? I think this behavior is due to the return from `id()` being interned, or not. `id(o) == id(o)` will be true in all cases
by cwalv 2y ago
Are you saying `o` is passed by value? I think this behavior is due to the return from `id()` being interned, or not. `id(o) == id(o)` will be true in all cases
- o11c 2y agoI mean that the `id` function returns by value. It's not interning since that explicitly refers to something allocated, which isn't the case here.
- ericvsmith 2y agoThis is incorrect. The returned integer is a regular Python object, not some "unboxed" integer value.