Case insensitivity

Christopher A. Craig com-nospam at ccraig.org
Fri Jul 20 14:21:19 EDT 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

James Logajan <JamesL at Lugoj.Com> writes:

> 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.

Actually, he intentionally exchanged "ia" with "ai".  If you re-read
his post you will see that he was describing a programming method by
which he finds typographical errors by intentionally using upper case
in variable names and typing them in lowercase when he uses them.  He
then expects the IDE to change his case and knows that he made a typo
if it doesn't.  

I'm not sure this is all that useful of a programming paradigm (I
wouldn't want to use ugly MixedCase just to find errors faster), but
it would not be supported by any current Python IDE I know of.

- -- 
Christopher A. Craig <com-nospam at ccraig.org>
"How does a project get to be a year late? 
- -- One day at a time" - Frederick Brooks, Jr.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt

iEYEARECAAYFAjtYdp8ACgkQjVztv3T8pzupFQCfchm3Ru5NTkGUYEmc4n+tvDJe
O88AnjGYXQBi0Ue+f+qtTnwzrPlgrhIT
=YYVf
-----END PGP SIGNATURE-----




More information about the Python-list mailing list