>
> Thanks for the replies. I will cook up some private API in my cpython
> fork. Whether or not my new vm ever sees the light of day, I think it
> would be worthwhile to consider a proper API (even a _PyEval macro or
> two) for the little dance the two subsystems do.
>

I committed a change to my fork:

https://github.com/smontanaro/cpython/commit/305758a42ec92dcd1d0a181f454af63b5741da5d

This moves direct stack manipulation out of genobject.c into ceval.c and
allows me to work on a non-stack way to deal with these tasks (note all the
calls to Py_FatalError in the CO_REGISTER branches). I am specifically not
holding this up as a proposal for how to do this (I am largely ignorant of
many of the internal or CPython-specific aspects of the C API). Still, the
tests pass and I can start to address those fatal errors.

Skip
.
_______________________________________________
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/U4YAIEGPUOX4X67GC5GWEE3PMHEVCKIR/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to