Case insensitivity

Dan Bergan danb at champonline.com
Fri Jul 20 14:26:21 EDT 2001


> Dan Bergan wrote:
> > (Declare the variable in mixed-case)
> > Dim myVariable as Integer
> >
> > (then I purposely type in the wrong case when I use 'myVariable')
> > myvaraible = 1  '<==TYPO!
>
> Well, if you "correct" that to myVaraible you would still be in error,
> because you accidentally exchanged "ia" with "ai" in addition to changing
> "V" to "v". Python will not inform you about about some typos, whether
> case-related, dropped characters, exchanged characters, or added
characters.

I think you missed my point a bit.  VB would NOT correct the typo (because
it does not match a variable name that is already declared).  So, I use the
fact that it was NOT corrected as a flag that I screwed something up.

Dan






More information about the Python-list mailing list