why cannot assign to function call

scsoce scsoce at gmail.com
Mon Dec 29 07:01:38 CET 2008

I have a function return a reference, and want to assign to the 
reference, simply like this:
 >>def f(a)
          return a
     b = 0
    * f( b ) = 1*
but the last line will be refused as "can't assign to function call".
In my thought , the assignment is very nature,  but  why the interpreter 
refused to do that ?


More information about the Python-list mailing list