Hi, I wrote the PEP 509 as part of my abandonned "FAT Python" project which was a ahead-of-time optimizer using runtime guards to deoptimize code. I planed to abandon this PEP as well, but the dictionary version was used by LOAD_GLOBAL opcode cache which made the version useful and so the PEP was accepted in Python 3.6.
As soon as LOAD_GLOBAL and LOAD_ATTR optimizations are not lost, I'm perfectly fine with removing the dictionary version. As it was said in other messages, there is now a per-key version which can be used instead, if I understand correctly. Victor On Thu, Jul 29, 2021 at 12:41 PM Mark Shannon <m...@hotpy.org> wrote: > > Hi everyone, > > I would like to repeal PEP 509. We don't really have a process for > repealing a PEP. Presumably I would just write another PEP. > > Before I do so, I would like to know if anyone thinks we should keep > PEP 509. > > The dictionary version number is currently unused in CPython and just > wastes memory. I am not claiming that we will never need it, just that > we shouldn't be required to have it. It should be an internal > implementation detail that we can add or remove depending on requirements. > > Thoughts? > > Cheers, > Mark. > _______________________________________________ > 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/GV4CW3T7SUTJOYSCP6IJMV4AHDNNZIPV/ > Code of Conduct: http://python.org/psf/codeofconduct/ -- Night gathers, and now my watch begins. It shall not end until my death. _______________________________________________ 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/J6GMNVLSLBBZB766ZNTJO3FU3ORJ75NN/ Code of Conduct: http://python.org/psf/codeofconduct/