pythoncapi-compat
pythoncapi-compat copied to clipboard
upgrade_pythoncapi.py: disable "coding style" operations
By default, upgrade_pythoncapi.py enables all operations. Some operations are not strictly required to support Python 3.10 and Python 3.11 and can introduce many "unwanted" changes:
- PyMem_MALLOC, PyObject_MALLOC, PyObject_NEW
- PyFrame_GetBack, PyFrame_GetCode
- PyThreadState_GetInterpreter, PyThreadState_GetFrame
- Py_TYPE, Py_SIZE, Py_REFCNT
Maybe keeping them by default is fine, there should be an easy way to only apply required changes. For example, Python 3.10 requires Py_SET_REFCNT and Python 3.11 requires Py_SET_SIZE.
Sounds good. Do you have a list of required changes, or do we need to assemble one?
I lost track of the issue, I prefer to close it for now.