Hi Nick, Our discussion on PEP 558 got me thinking "What is the simplest thing that would work?".
This is what I came up (in the form of a draft PEP): https://github.com/markshannon/peps/blob/pep-locals/pep-06xx.rstIt doesn't have O(1) len(f_locals), and it does break `PyEval_GetLocals()` but I think the that is a small price to pay for simplicity and consistency.
What do you think? Cheers, Mark. _______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/FCWMWQ7TCSHE7LIXRMMR3Z37LJKIOO5J/ Code of Conduct: http://python.org/psf/codeofconduct/