I wouldn't worry too much about the the Singletons in this issue; they could be solved in any of several ways, all of which would be improvements conceptually -- if performance and backwards compatibility were resolved.
In theory, the incr/decr pair should be delegated to the memory store, with Petr's suggestion of immortal immutables being one example. The catch is that the current scheme is really fast in the normal case; even hardcoding just True/False/None to magic addresses might be slower. You don't have to solve that just to speed up access to state variables that are not exposed directly to python code. _______________________________________________ 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/3KDVELTYRTY72RL7X24VZHBXSKAOY2YH/ Code of Conduct: http://python.org/psf/codeofconduct/