Confusion about dictionaries - keys use value or identity?

Tim Peters tim.one at home.com
Sun Jul 8 23:13:00 CEST 2001


[Steve Holden]
> ...
> Key comparison of strings will test the lengths fisrt, and if the
> lengths are the same will stop once two unequal characters are found...

That's backwards.  If it tested the lengths first, then e.g. "z" < "aaa"
would be true.

"perl"<"python"-is-true-either-way-though-ly y'rs  - tim





More information about the Python-list mailing list