Programming

Python Is Neither Call by Value Nor Call by Reference

It’s call-by-sharing.

Yang Zhou
Published in
4 min readJan 30, 2024

--

Python Is Neither Call by Value Nor Call by Reference
Image from Wallhaven

In Python, the concept of “call by value” or “call by reference” doesn’t exactly apply as it does in languages like C or C++.

This is the root of much, if not all, confusion.

--

--