case sensitivity and XML

Emile van Sebille emile at fenx.com
Tue May 23 11:43:26 EDT 2000


>>> class Foo:
 pass

>>> foo=Foo()
>>> foo.FOo=1
>>> foo.FOo=[1,2,3,4]
>>> foo.FOO=[10,11,12,13]
>>> foo.FoO=[20,21,22,23]
>>> map(lambda FOo,FOO,FoO: FOo+FOO+FoO,foo.FOo,foo.FOO,foo.FoO)

Now-all-that-needs-explaining-is-foo<sp?>-ly y'rs

Emile van Sebille
emile at fenx.com
-------------------


----- Original Message -----
From: Randall Hopper <aa8vb at yahoo.com>
To: Michal Wallace (sabren) <sabren at manifestation.com>
Cc: <python-list at python.org>
Sent: Tuesday, May 23, 2000 8:32 AM
Subject: Re: case sensitivity and XML


> Michal Wallace (sabren):
>  |1. By definition: For python to be case insensitive, the token {A}
>  |   must be the same as the token {a}.
> ...
>  |3. Therefore:
>  | x.__dict__["A"] = 1
>  |   is the same as:
>  | x.__dict__["a"] = 1
> ...
>  |4. Therefore, the string, "A" must be equivalent to the string, "a".
>
> Not necessarily.  But I can see the confused newbie questions rolling
in
> now.
>
> Reading BASIC and Pascal code for several years taught me (among other
> things) that case insensitivity isn't the better way.
>
> whY do WE Have RULES fOR capiTALIZation IN lANGUAGES?  Because it
makes
> them easier to read and comprehend.
>
> --
> Randall Hopper
> aa8vb at yahoo.com
>
> How many variables? -- you decide:
>   10 IF AVAR<>10 then avar!=512:PRINT bvar;:goto 100:Else Avar=0:Goto
20
>
>
> --
> http://www.python.org/mailman/listinfo/python-list
>





More information about the Python-list mailing list