[Tutor] I'd like to sort (symbol, address) set by address

lumbricus@gmx.net lumbricus@gmx.net
Mon, 15 Jul 2002 17:25:02 +0200 (MEST)


> 
> Hi all.

Hello!

[ snip ]

> I think first I have to convert second item value to integer. 

No

> so Is there any methond that change input(hex) to integer ? 

There is no need for that. 
$ python
 Python 1.5.1 (#1, Apr  7 1999, 08:54:31) [C] on osf1V4
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> l=[0x23,0xff,0x1]
>>> l
[35, 255, 1]
>>> l.sort()
>>> l
[1, 35, 255]
>>> ^D

> I'd appreciate any help. Thanks.

HTH,HAND J"o!

-- 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net