Case sensitivity

Mike Meyer mwm at mired.org
Sun Feb 23 12:01:29 EST 2003


"Terry Reedy" <tjreedy at udel.edu> writes:
> "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.

Why limit it to an editor? How about a hook you could install
interactively - like readline - that would catch exceptions and offer
to let you change the names on the fly? Or maybe add it to pdb?

        <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.




More information about the Python-list mailing list