Weird...

Skip Montanaro skip at pobox.com
Mon Apr 11 12:51:44 EDT 2005


    >>> {'a':1,'b':'2','c':[3,4]}.keys()
    ['a', 'c', 'b']

    Joshua> How come? :-)

Because:

    >>> {'A':1,'b':'2','Cat':[3,4]}.keys()
    ['A', 'b', 'Cat']

:-)

For more detail:

    http://www.python.org/doc/faq/general.html#id48

Skip



More information about the Python-list mailing list