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/2018-June/154120.html below:

[Python-Dev] Informal educator feedback on PEP 572 (was Re: 2018 Python Language Summit coverage, last part)

[Python-Dev] Informal educator feedback on PEP 572 (was Re: 2018 Python Language Summit coverage, last part) [Python-Dev] Informal educator feedback on PEP 572 (was Re: 2018 Python Language Summit coverage, last part)Eric V. Smith eric at trueblade.com
Wed Jun 27 08:00:20 EDT 2018
On 6/27/2018 7:08 AM, Chris Angelico wrote:
> It gets funnier with nested loops. Or scarier. I've lost the ability
> to distinguish those two.
> 
> def test():
>      spam = 1
>      ham = 2
>      vars = [key1+key2 for key1 in locals() for key2 in locals()]
>      return vars
> 
> Wanna guess what that's gonna return?

I'm not singling out Chris here, but these discussions would be easier 
to follow and more illuminating if the answers to such puzzles were 
presented when they're posed.

Eric

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