Finding the instance reference of an object

greg greg at cosc.canterbury.ac.nz
Fri Oct 31 08:15:30 CET 2008


Dale Roberts wrote:

> Just as the Pass By Reference idiom deserves a unique name to
> distinguish it from Pass By Value (even though it is often Pass By
> (address) Value internally), so Pass By Object Reference deserves a
> unique name (even though it too is Pass By (reference) Value
> internally).

Since Python only has one parameter passing mechanism,
there's no need to give it a name at all. If you're
having to explain it, just explain it, and don't
bother naming it!

-- 
Greg



More information about the Python-list mailing list