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/2001-December/018852.html below:

[Python-Dev] nested scopes confusion

[Python-Dev] nested scopes confusion [Python-Dev] nested scopes confusionMartin v. Loewis martin@v.loewis.de
Tue, 4 Dec 2001 21:17:46 +0100
> So nested scopes are not really an alternative (at least in this case)
> to the 'lambda self, i=i: i' trick.

In this case, they aren't. In many other cases (e.g. when the variable
from the outer scope is self), nobody will assign to this variable, in
which case this does exactly the same thing as the i=i trick.

Regards,
Martin



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