Hi Richard

Thank you for your interest. You wrote:

One thought that I had is the fact that this whole proposal seems to be
> based on code blocks never needing to be collected?
>

That's not quite what I meant to say. One part of the basic idea is that
permanent code objects be made available to the Python interpreter. The
second part is that the interpreter does not keep reference counts to these
permanent objects.

What I did not say explicitly, or not clearly enough, was that the previous
use would continue unchanged. The only change would be that a function
object would have a flag, which would tell the interpreter whether the
associated code object was transient or permanent. (This, as I recall, I
did mention in my original post.)

Thank you for providing an example. This has made your concern very clear.
It is my intention that this example, and also 'change the code monkey
patching' would continue to work as before.

To summarise: Permanent code objects are to be optional. Use them only if
they help in some way.

I hope this helps. Once again, thank you for your interest and contribution.

with best wishes

Jonathan
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/OANM6S2ZAMPWOILJNJ2OGTMBVM6YLRFH/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to