Case sensitivity

Terry Reedy tjreedy at udel.edu
Sat Feb 22 20:25:25 EST 2003


"Alex Martelli" <aleax at aleax.it> wrote in message
news:wxH5a.215215$0v.6019898 at news1.tin.it...
> I don't want the compiler to "guess what I _mean_"

How about an editor that guessed that rawinput (with whatever
capitalization) or Raw_input (or any other variant) might mean
raw_input and ask, at least once?  Similarly for StringIO?  Given that
Python 2, at least, will not go case insensitive, perhaps there is a
technical solution that would help most everybody.

A Python programming environment could hash lower case versions of
everything in builtins and all modules in the standard lib and check
lower-cased versions of identifiers and import names against those
sets for matches.  When I acknowledged sensory processing differences,
I intentionally did not specify who should be catered to or, more
importantly, not catered to.  I would like everyone who wants to
program in Python to be able to so comfortably and productively.

Given that a line or block of lines can be syntax checked in about the
time it takes me to move my eyes from the end of one line to to the
beginning of the next, it would be nice to have such checking done
immediately.  I would like to see feasible parts of PyChecker
incorporated into Idle/Pythonwin (but am not currently in a position
to help much).  I am sure others have thought the same.

Terry J. Reedy






More information about the Python-list mailing list