a=0100; print a ; 64 how to reverse this?

Walker Lindley brotherjenos at gmail.com
Wed Jul 18 00:04:22 EDT 2007


This is probably way more simple than you mean, but str() can turn an int
into a string and int() to go the opposite direction. Is that what you're
talking about or do you need something else?


-Walker Lindley

On 7/17/07, Dan Bishop <danb_83 at yahoo.com> wrote:
>
> On Jul 17, 7:40 am, mosi <skawan... at gmail.com> wrote:
> > Thank you,
> > this is great,
> > I thought that this should be standard in python 2.4 or 2.5 or in some
> > standard library (math ???)
> > Didn`t find anything.
>
> The bin() function is slated to be added to the next version of
> Python.
>
> Why there isn't a general itoa() function, I don't know.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070717/8b23a80d/attachment.html>


More information about the Python-list mailing list