Please help with MemoryError

Antoine Pitrou solipsis at pitrou.net
Fri Feb 12 16:52:34 EST 2010


Le Fri, 12 Feb 2010 17:14:57 +0000, Steven D'Aprano a écrit :
> 
> What Python does is called "pass by sharing", or sometimes "pass by
> object reference". It is exactly the same as what (e.g.) Ruby and Java
> do, except that confusingly the Ruby people call it "pass by reference"
> and the Java people call it "pass by value", thus guaranteeing the
> maximum amount of confusion possible.

Well, I think the Ruby people got it right. Python *does* pass parameters 
by reference. After all, we even speak about reference counting, 
reference cycles, etc.

So I'm not sure what distinction you're making here.




More information about the Python-list mailing list