In this branch, I made one change by adding Py_INCREF(Py_None) before returning Py_None.
This is important to ensure correct counting of references for Py_None.
If Py_INCREF(Py_None) is not added, returning too many None values may cause the following error:
Fatal Python error: none_dealloc: deallocating None
Python runtime state: initialized
Therefore, it is necessary to add Py_INCREF(Py_None) before returning Py_None to prevent this error.
In this branch, I made one change by adding Py_INCREF(Py_None) before returning Py_None. This is important to ensure correct counting of references for Py_None.
If Py_INCREF(Py_None) is not added, returning too many None values may cause the following error: Fatal Python error: none_dealloc: deallocating None Python runtime state: initialized
Therefore, it is necessary to add Py_INCREF(Py_None) before returning Py_None to prevent this error.