19.07.20 19:33, Steven D'Aprano пише:
On Sun, Jul 19, 2020 at 06:38:30PM +0300, Serhiy Storchaka wrote:
What if use serial numbers to differentiate instances?
I like this idea. It is similar to how Jython and IronPython object IDs work:
# Jython >>> id(None) 2 >>> id(len) 3 >>> object() <object object at 0x4>
No, I do not propose to change object IDs. I proposed only to use serial numbers instead of IDs in reprs of some classes.