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

[Python-Dev] 2.5 and beyond

[Python-Dev] 2.5 and beyond [Python-Dev] 2.5 and beyondAndrew Koenig ark at acm.org
Sat Jul 1 01:27:06 CEST 2006
> That sounds like a bug, not a feature.  It's frequently useful to have
> forward references in function bodies to names that are not yet globally
> bound, e.g. for classes, or mutually-recursive functions.

The trouble is that you don't necessarily know in what scope they will be
defined, so I think that forcing you to be explicit about it is useful.  Can
you show me an example of where you think it isn't?

Incidentally, I think that lexical scoping would also deal with the problem
that people often encounter in which they have to write things like "lambda
x=x:" where one would think "lambda x:" would suffice.



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