May-05-2022, 02:02 PM
Please read who is python-forum.io first to understand that we are not the Python language core developers.
That said, could you post code examples of what you mean by these major problems. Python passes everything by reference, but it cannot pass variable names by reference, so a function cannot set a variable of the calling function's body. This is only annoying if you have strong habits acquired in languages that allow this, but these habits can be changed. I for example almost never bury anything into a list to allow call by reference. Functions can set their argument's attributes and this generally suffices.
That said, could you post code examples of what you mean by these major problems. Python passes everything by reference, but it cannot pass variable names by reference, so a function cannot set a variable of the calling function's body. This is only annoying if you have strong habits acquired in languages that allow this, but these habits can be changed. I for example almost never bury anything into a list to allow call by reference. Functions can set their argument's attributes and this generally suffices.