sorting a list numbers stored as strings

Delaney, Timothy (Tim) tdelaney at avaya.com
Wed Sep 26 11:42:10 CEST 2007


Hrvoje Niksic wrote:

> "Delaney, Timothy (Tim)" <tdelaney at avaya.com> writes:
> 
>> Yep - appears I must have been misremembering from another language
>> (dunno which)
> 
> <cough>Tcl</cough>

Not bloody likely - only used Tcl for expect, and then only very
minimally. I'm sure there's at least one language though among the 20+
I've forgotten over the years that has significant leading zeroes in its
default string->int parsing.

Actually, I think Java does ...

Tim Delaney



More information about the Python-list mailing list