why cannot assign to function call

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Mon Dec 29 10:07:00 CET 2008

scsoce a écrit :
> I have a function return a reference, and want to assign to the 
> reference,

You have a function that returns an object. You can't "assign" to an 
object - this makes no sense.

I'm afraid you are confusing Python's name/object bindings with C 
pointers or C++ references.

More information about the Python-list mailing list