alex23 <[EMAIL PROTECTED]> writes: > On Nov 21, 9:40 am, J Kenneth King <[EMAIL PROTECTED]> wrote: >> Of course, providing a shallow (or deep as necessary) copy makes it >> work, I'm curious as to why the value passed as a parameter to a >> function outside the class is passed a reference rather than a copy. > > You're passing neither a reference nor a copy, you're passing the > object (in this case a list) directly: > > http://effbot.org/zone/call-by-object.htm
Ah, thanks -- that's precisely what I was looking for. I knew it couldn't be a mistake; I just couldn't find the documentation on the behaviour since I didn't know what it was called in the python world. Cheers. -- http://mail.python.org/mailman/listinfo/python-list