| ▲ | mattclarkdotnet 10 hours ago | |||||||
Let's not get started on the cached shared object refs for small integers.... | ||||||||
| ▲ | zahlman 8 hours ago | parent [-] | |||||||
What realistic use case do you have for caring about whether two integers of the same value are distinct objects? Modern versions of Python warn about doing unpredicatble things with `is` exactly because you are not supposed to do those things. Valid use cases for `is` at all are rare. | ||||||||
| ||||||||