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.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/PJOBIIV52J3AHKT7SBVQLPMY46SS36AO/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to