Hello,
If I correctly speaking python uses mechanism of call by object sometimes we call it call by sharing in which we pass argument like integers,strings,function etc.What i'm saying this is correct or not??I think error is generate just because of coding which isn't in correct way or the way which we pass argument.
I think if you are not satisfied with me then I'm not getting your point correctly.
Please check by google.
Thanks...