Language change and code breaks (fwd)

Bengt Richter bokr at accessone.com
Sat Jul 21 20:20:18 EDT 2001


On Sat, 21 Jul 2001 17:54:09 -0500, Skip Montanaro <skip at pobox.com> wrote:

>
>    >> That does bring up the subject of machine-generated symbols though.
>    >> And case sensitivity in dictionaries. I use base52 [A-Za-z] encoded
>    >> md5's in certain contexts. If I use those as keys, will it break?
>
>    kosh> Losing case sensitivity in dictionaries would screw me pretty
>    kosh> badly also.
>
>I think case-sensitivity as we are discussing in this thread runs only to
>identifier and attribute names, not the contents of strings, so while
>
>    date = 1
>    DATE += 1
>    print Date
>
>should print "2" by my understanding, 
>
>    dict = {"date": 1,
>            "DATE": 2,
>            "Date": 3}
>
>would create a dictionary of length 3.
>
Ok, after the above, what would locals() give you?
Which will give the value 2, locals()['date'] or locals()['DATE']
or both?




More information about the Python-list mailing list