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-July/154662.html below:

[Python-Dev] PEP 572 and assert

[Python-Dev] PEP 572 and assert [Python-Dev] PEP 572 and assertSerhiy Storchaka storchaka at gmail.com
Tue Jul 17 11:28:09 EDT 2018
17.07.18 17:59, Guido van Rossum пише:
> The PEP has no specific opinion except it is not forbidden.
> 
> Personally I like Barry's example just fine -- assuming `subdirs` is not 
> used later, this feels like a good use case.

Shouldn't this problem be solved in the same way as for comprehensions?
Should not the assert statement introduce an implicit lexical scope for 
preventing leaking variables?

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