On Fri, 13 Oct 2006 13:10:55 -0500
eldorado <eldorado at io.com> wrote:
> I have looked around and cannot seem to find a way to strip leading zeros
> off of values in a dictionary. Basically, I am looking to do a for loop
> and any value that has one or more leading zeros would be stripped. Any
> pointers would be appreciated. Thanks
I assume that the values are string representations of numbers? If that
is the case, you could do 'str (int (<value>))'. It's ugly but it works.
--
Mitko Haralanov mitko at qlogic.com
Senior Software Engineer 650.934.8064
System Interconnect Group http://www.qlogic.com