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/1999-May/095163.html below:

[Python-Dev] More flexible namespaces.

[Python-Dev] More flexible namespaces. [Python-Dev] More flexible namespaces.Mark Hammond MHammond at skippinet.com.au
Sun May 2 01:28:11 CEST 1999
> I'm not sure whether any of the
> proposals on
> the table really do what's needed for e.g. case-insensitive namespace
> handling.  I can see how all of the proposals so far allow
> case-insensitive reference name handling in the global namespace, but
> don't we also need to hook into the local-namespace creation
> process to
> allow case-insensitivity to work throughout?

Why not?  I pictured case insensitive namespaces working so that they
retain the case of the first assignment, but all lookups would be
case-insensitive.

Ohh - right!  Python itself would need changing to support this.  I suppose
that faced with code such as:

def func():
  if spam:
    Spam=1

Python would generate code that refers to "spam" as a local, and "Spam" as
a global.

Is this why you feel it wont work?

Mark.



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