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/2013-March/124736.html below:

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

[Python-Dev] can't assign to function call [Python-Dev] can't assign to function callSteven D'Aprano steve at pearwood.info
Mon Mar 18 15:03:47 CET 2013
On 19/03/13 00:50, Neal Becker wrote:
> def F(x):
>      return x
>
> x = 2
> F(x) = 3
>
>      F(x) = 3
> SyntaxError: can't assign to function call
>
> Do we really need this restriction?  There do exist other languages without it.


What meaning would you give to "F(x) = 3", and why?



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