Vladimir

23%
Flag icon
In Python, the function gets a copy of the arguments, but the arguments are always references. So the value of the referenced objects may be changed, if they are mutable, but their identity cannot. Also, because the function gets a copy of the reference in an argument, rebinding it in the function body has no effect outside of the function.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview