[Python-Dev] Patch to use dict subclasses in eval(), exec
Guido van Rossum
guido@python.org
Tue, 29 Oct 2002 07:43:50 -0500
> I wonder how many reasonable real-life scenarios actually exist for
> this feature?
>
> My personal use would be for COM, to implement case-insensitive
> namespaces. In some cases, case-insensitivity is actually part of
> the implementation specification, and I can imagine other scenarios
> where case insensitive namespaces are "reasonable" even in the face
> of Python's excellent decision not to go this route.
>
> I wonder is this is actually the root of many requests to see this
> feature implemented? If not, it would be interesting to see what
> the competing desires really are.
Excellent observation. Perhaps the people who want this can get
together and write a PEP that explains the motivation and why the
alternatives don't work? (E.g. when you need case-insensitive
variable names, perhaps it's just as easy to preprocess the source
code?)
--Guido van Rossum (home page: http://www.python.org/~guido/)