[Python-Dev] SyntaxError: can't assign to function call (original) (raw)
Guido van Rossum guido at python.org
Thu Aug 10 18:24:39 CEST 2006
- Previous message: [Python-Dev] SyntaxError: can't assign to function call
- Next message: [Python-Dev] SyntaxError: can't assign to function call
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 8/10/06, James Y Knight <foom at fuhm.net> wrote:
It makes just as much sense as assigning to an array access, and the semantics would be pretty similar.
No. Array references (x[i]) and attribute references (x.a) represent "locations". Function calls represent values. This is no different than the distinction between lvalues and rvalues in C.
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] SyntaxError: can't assign to function call
- Next message: [Python-Dev] SyntaxError: can't assign to function call
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]