itoa (WAS: Re: %a format)

Steven Bethard steven.bethard at gmail.com
Wed Sep 8 20:44:08 EDT 2004


I wrote:

> >>> def itoa(i, base):
> ...     return str(int(str(i), base))
> ...

Oops.  My bad.  You wanted the inverse.  Just ignore me.  ;)




More information about the Python-list mailing list