A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-August/068162.html below:

[Python-Dev] SyntaxError: can't assign to function call

[Python-Dev] SyntaxError: can't assign to function call [Python-Dev] SyntaxError: can't assign to function callNeal Becker ndbecker2 at gmail.com
Fri Aug 11 12:31:22 CEST 2006
Guido van Rossum wrote:

> 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.
> 

Except this syntax is valid in c++ where X() is a constructor call:

X(whatever) += 2; is (or can be) valid c++

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4