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/2011-January/107423.html below:

[Python-Dev] I want my sugar...

[Python-Dev] I want my sugar... [Python-Dev] I want my sugar...Benjamin Peterson benjamin at python.org
Sun Jan 16 18:54:15 CET 2011
2011/1/16 Peter Hall <bisfik at yahoo.com>:
> I am a newbie to python, and am curious why the following syntax is not
> supported:
>
> # Boolean test on x...
> if (x = someFunc(...)):
>     # Do something with x...
>
> I've found it convenient in perl.
>
> Is the syntax actually supported, and I'm ignorant?
> Is the usage considered 'unPythonic'?
> Can you point me to any existing discussion of the issue (it must have come up
> before?)?

See python-ideas.



-- 
Regards,
Benjamin
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